Skip to content

Expose access to the SchemaParser dictionary  #720

Description

@givemetheinternet

I want to suggest an idea and checked that ...

  • ... to my best knowledge, my idea wouldn't break something for other users
  • ... the documentation does not mention anything about my idea
  • ... there are no open or closed issues that are related to my idea

Description

The mapping from graphql schema type to Java implementation type/class is held in a private member variable dictionary within the SchemaParser class. It would be useful to have the information about this mapping easily accessible (though directly immutable) to clients of the API either through the SchemaParser itself, or the GraphQLSchema that gets finally generated.

Use Cases

This change would enable easier unit/integration testing of applications relying on graphql-java-tools to generate schemas from files. For example, a specific test I need to write must verify that the enum options listed in the schema exactly match the enum options available in the related Java type.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions