Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unused types for all dictionary types #736

Open
3 tasks done
timward60 opened this issue Mar 7, 2023 · 0 comments · May be fixed by #737
Open
3 tasks done

Support unused types for all dictionary types #736

timward60 opened this issue Mar 7, 2023 · 0 comments · May be fixed by #737

Comments

@timward60
Copy link
Contributor

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

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 timward60 linked a pull request Mar 7, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant