graphql-java-tools icon indicating copy to clipboard operation
graphql-java-tools copied to clipboard

Support unused types for all dictionary types

Open timward60 opened this issue 2 years ago • 0 comments

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

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

Description

Allow unused types for all dictionary types, rather than restricting to just ObjectTypeDefinitions. This allows unused enums, interfaces, unions, etc.

Use Cases

We use a combination of missing field resolver, and unused types to allow preview fields in our schema. E.g. schema without resolver implementations. We achieve this with a mixture of using the missing field resolver option, and generating empty types to be registered by SchemaParser.dictionary(...).

timward60 avatar Mar 07 '23 08:03 timward60