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
As projects like Relay have shown, it's relatively common to repeat the same generic structures of types multiple times within a project. In the case of Relay, I'm talking about Connections.
The GraphQL definition language already has explicit support for one particular form of generic type, arrays:
type Foo {
id: ID!
bars: [Bar]
}
I'd like to start discussion about being able to do something similar for user-defined structures:
Hey, nice!
But if you don't use GraphQL language itself but you create this schema on runtime, you only need higher order function as this is already done in graphql-relay.
BTW every used generic type must be materialized somewhere, so can this be really useful?
As projects like Relay have shown, it's relatively common to repeat the same generic structures of types multiple times within a project. In the case of Relay, I'm talking about Connections.
The GraphQL definition language already has explicit support for one particular form of generic type, arrays:
I'd like to start discussion about being able to do something similar for user-defined structures:
The overall goal is to reduce the amount of boilerplate in creating schemas with repetitive structures.
The text was updated successfully, but these errors were encountered: