You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should improve the type hierarchy around dimensions, resources and dimension values.
As a first cut I'd suggest something like this (taken from comment), but we should discuss more:
interfaceResource {
uri: ID!label: String!
}
interfaceDimension {
uri: ID!label: String!
}
interfaceDimensionValue {
uri: ID!label: String!
}
typeDefaultDimensionimplementsDimension {
uri: ID!label: String!values: [DimensionValue]
}
typeDefaultDimensionValueimplementsDimensionValue {
uri: ID!label: String!
}
typeEnumDimensionValueimplementsDimensionValue {
uri: ID!label: String!enum_name: String!
}
typeEmumDimensionimplementsDimension {
values: [EnumDimensionValue]
}
typeHierarchicalValueimplementsDimensionValue { # i.e. could be a RefAreaValueuri: ID!label: String!children: [DimensionValue] # NOTE you can't have recursive datatypes in graphql :-( but we could potentially improve later by generating more specific types for each area level etc...
}
typeHierarchicalDimensionimplementsDimension { # i.e. could be a RefAreaDimensionvalues: [HierarchicalValue]
}
The text was updated successfully, but these errors were encountered:
Moving suggestion from comment on issue #55 here.
We should improve the type hierarchy around dimensions, resources and dimension values.
As a first cut I'd suggest something like this (taken from comment), but we should discuss more:
The text was updated successfully, but these errors were encountered: