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

feat(entgql): Allow comments on edge fields #457

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

tankbusta
Copy link
Contributor

If you add a comment to a field in the Ent schema, the comment will automatically carry over to the graphql schema. This behavior does not work on edges.

Of note, it may make sense to add a new entgql.Comment("gql description here") annotation that allows you to override the comment you have in your schema. The comment specified in the annotation would be used in the GraphQL schema; falling back to the comment added to the Field/Edge if the annotation was not provided. Thoughts?

@giautm giautm merged commit e23bc6c into ent:master Mar 18, 2023
@giautm
Copy link
Collaborator

giautm commented Mar 18, 2023

@tankbusta: thank you for your contribute. <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants