graphql-java-tools
                                
                                 graphql-java-tools copied to clipboard
                                
                                    graphql-java-tools copied to clipboard
                            
                            
                            
                        Support unused types for all dictionary types
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(...).