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

fix: rename variable when iterating through p.order in toCursor template #538

Merged
merged 2 commits into from
Jul 25, 2023
Merged

fix: rename variable when iterating through p.order in toCursor template #538

merged 2 commits into from
Jul 25, 2023

Conversation

Tantatorn-dev
Copy link
Contributor

According to ent/ent#3601, I've found this error too when my table's name starts with 'O'.
It seems variables' name are conflicting; the argument of toCursor function and the one for iterating through p.order.
I've renamed the variable for iterating through p.order to 'po' in a template.

@a8m
Copy link
Member

a8m commented Jul 25, 2023

Thanks for the contribution, @Tantatorn-dev. You need to run go generate on entgql.

@Tantatorn-dev
Copy link
Contributor Author

@a8m I've run go generate

Copy link
Member

@a8m a8m left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, @Tantatorn-dev.

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