The name basically says it all: I am creating a response / relay application that will allow the user to dynamically create diagrams at runtime, displaying their various revenue streams over a specific time interval. One feature of this diagram is the ability of the user to specify the sampling interval for each flow proceeds (e.g., YEAR, QUARTER, MONTH, WEEKetc.) as a parameter for each flow.
These values are defined in the schema as an instance GraphQLInputObjectTypeas follows:
enum timeSeriesIntervalEnum {
YEAR
QUARTER
MONTH
WEEK
}
On the client side, I have fragments react-relaydefined from the following form:
fragment on BalanceSheet {
income {
afterTax {
values(interval: $samplingInterval)
dates(interval: $samplingInterval)
}
}
}
, timeSeriesIntervalEnum.
, , API , , (, timeSeriesIntervalEnum), graphql json (pre-runtime), .
. , json , .