-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Thanks for this Peter!
Right now the process of enabling leveler in a graphql schema is a bit involved. It would be great to have a way to enable leveler for all GraphQLObjectType in a given schema or high level type.
This will be hard in situations where part of the schema is provided externally and the source cannot be modified easily. With the current process you have to be very careful not to forget to use GraphQLObjectType, if you do there is no way to detect that easily.
It would be great something like:
enableLeveler(schema: GraphQLSchema) {
// Traverse the schema recursively and decorate `GraphQLObjectType` with leveler features.
}