Skip to content

Omit Types from schema if not used by loaded resolvers #110

@cross311

Description

@cross311

Is your feature request related to a problem? Please describe.
We are placing resolvers in different folders for public or internal.
We are deploying the same graphQL codebase twice, one marked as public and one internal.
The public one does not have a number of revolvers, due to them only being internal.
We are doing this so we do not expose our internal models publically.

While only the resolvers that we require are showing up in the schema (👍 ), all of the ObjectTypes in the codebase are.

Describe the solution you'd like
The requested solution is to only put types that are used in the loaded resolvers.

Describe alternatives you've considered
We can split the codebase and move shared models into an npm package but would prefer not.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions