dotansimha / dotansimha/graphql-code-generator-community
MongoDB Plugin: Allow discriminatorField to be empty
Open
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
It'd be great to allow discriminatorField to be empty for the abstractEntity/union directives. In many cases determining type by property checking is sufficient.
What happens currently is:
- For abstractEntity an error is thrown by codegen
- For union an { undefined: string } property is added to the union type.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.