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

Crude check if any empty interfaces or objects exist in the schema #875

Merged
merged 3 commits into from
Feb 2, 2022

Conversation

darrellwarde
Copy link
Contributor

Description

If after full augmentation, any interfaces or objects with no fields exist, throw an error, because this is a violation of the GraphQL spec.

Issue

Closes #870

@darrellwarde
Copy link
Contributor Author

Let's get this merged but be aware of the potential impact on performance - we should probably amalgamate any and all "post" checks into one iteration of the output document.

@darrellwarde darrellwarde merged commit 97d508f into neo4j:dev Feb 2, 2022
@darrellwarde darrellwarde deleted the fix/empty-interfaces branch February 2, 2022 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If all field of an interface are private an invalid schema is generated
2 participants