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

entgql: move the order-fields logic to template function #273

Merged
merged 2 commits into from
Mar 27, 2022
Merged

Conversation

a8m
Copy link
Member

@a8m a8m commented Mar 26, 2022

If the target Edge.Type does not have order fields, they won't be defined in the GraphQL schema, and having them in the method signature will break the gqlgen binding.

@a8m a8m requested review from giautm and rotemtam March 26, 2022 15:29
entgql/template.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@giautm giautm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a mistake

entgql/annotation.go Outdated Show resolved Hide resolved
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
Copy link
Collaborator

@giautm giautm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, <3

@a8m a8m merged commit 476eb97 into master Mar 27, 2022
@a8m a8m deleted the orderfields branch March 27, 2022 08:18
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