-
Notifications
You must be signed in to change notification settings - Fork 0
feat(apollo): enable APQ #8
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
Conversation
2914da3
to
4c74d14
Compare
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables Automatic Persisted Queries (APQ) for Apollo Client to optimize GraphQL query performance by caching query strings on the server and sending only hashes from the client. Additionally, it includes formatting improvements for percentage display in statistics components.
- Implements APQ using
PersistedQueryLink
with SHA-256 hashing - Updates percentage calculations to display whole numbers instead of decimal precision
- Adds
crypto-hash
dependency for SHA-256 hashing functionality
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
package.json | Adds crypto-hash dependency for SHA-256 hashing |
lib/apollo.ts | Implements APQ by adding PersistedQueryLink to Apollo Client configuration |
app/(app)/statistics/_components/statistics/resolved-questions.tsx | Updates percentage calculation to multiply by 100 for proper percentage display |
app/(app)/statistics/_components/board/completed-questions.tsx | Changes percentage formatting from 2 decimal places to whole numbers |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
app/(app)/statistics/_components/statistics/resolved-questions.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
No description provided.