Aggregate queries local support only & recommendation#691
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new Best Practices subsection “Aggregations: local vs hosted (avoid the foot‑gun)” to navigating-hasura.md, advising precomputing aggregates at indexing time due to differences between local and hosted Hasura. Includes schema examples (GlobalState, Token) and a TypeScript handler demonstrating load–increment–persist of counters. Mentions exceptions and Discord pointers. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|
|
||
| NftContract.Mint.loader((event, context) => { | ||
| context.GlobalState.load(globalStateId); | ||
| }); |
There was a problem hiding this comment.
@DenhamPreen This is invalid API
There's also missing await in front of context.GlobalState.get and Handler args are invalid
|
|
||
| ```graphql | ||
| # singleton; you hardcode the id and load it in and out | ||
| entity GlobalState { |
Summary by CodeRabbit