Skip to content

Enable leveler on the schema level #1

@e0ipso

Description

@e0ipso

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.
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions