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

Add gqlhash #758

Merged
merged 2 commits into from
Nov 3, 2024
Merged

Add gqlhash #758

merged 2 commits into from
Nov 3, 2024

Conversation

romshark
Copy link
Contributor

@romshark romshark commented Nov 3, 2024

https://github.com/romshark/gqlhash

I built this tool because we wanted to implement an efficient allowlist for GraphQL queries
by SHA1 hash.
The original queries our clients provide aren't always formatted properly, hence
a single format on save or missing whitespace somewhere could change the hash of
a query in the allowlist, which made it quite fragile.
I also wanted comments to be ignored and not affect the generated hash.

gqlhash hashes executable documents very efficiently with a variaty of hash functions.
MIT Licence, fully open source.

@setchy setchy merged commit e57c3c1 into chentsulin:master Nov 3, 2024
1 check passed
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