Skip to content

fix: Define field args in deterministic order #5

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

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

AndrewSisley
Copy link

Resolves graphql-go#636

Defines field args in deterministic order (alpha-numeric descending) - this means that the users will (unless their client further shuffles these) view the field args in a deterministic order. Also massively helps testing.

@AndrewSisley AndrewSisley added the bug Something isn't working label Jul 14, 2022
@AndrewSisley AndrewSisley self-assigned this Jul 14, 2022
Copy link

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

LGTM as long as Args[i] being lexicographically lesser than Args[j] is the desired comparison =)

Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit 2451189 into develop Jul 15, 2022
fredcarle pushed a commit that referenced this pull request Apr 25, 2023
* Define field arguments in a deterministic order

* Yield introspected input fields in deterministic order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants