-
Notifications
You must be signed in to change notification settings - Fork 156
feat: allow empty arguments for field resolvers #1350
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
base: master
Are you sure you want to change the base?
feat: allow empty arguments for field resolvers #1350
Conversation
WalkthroughRefactors field resolution in gRPC datasource processing from fieldRef-based to fieldDefRef-based (field definition references) throughout execution plan construction and visitor logic. Adds strict validation for field definitions with error handling, conditional argument allocation in resolver RPC calls, and corresponding test coverage for optional resolver arguments. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Areas requiring extra attention:
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-11-19T09:42:17.644ZApplied to files:
📚 Learning: 2025-11-19T10:53:06.342ZApplied to files:
📚 Learning: 2025-12-02T08:25:26.682ZApplied to files:
📚 Learning: 2025-11-19T09:38:25.112ZApplied to files:
📚 Learning: 2025-08-08T09:43:07.433ZApplied to files:
📚 Learning: 2025-10-16T13:05:19.838ZApplied to files:
📚 Learning: 2025-07-28T12:44:56.405ZApplied to files:
🧬 Code graph analysis (4)v2/pkg/engine/datasource/grpc_datasource/execution_plan_visitor.go (4)
v2/pkg/engine/datasource/grpc_datasource/execution_plan_visitor_federation.go (3)
v2/pkg/engine/datasource/grpc_datasource/execution_plan_field_resolvers_test.go (3)
v2/pkg/engine/datasource/grpc_datasource/execution_plan.go (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (15)
Comment |
This PR introduces support to call field resolvers without any arguments. Currently we only check if field resolvers provide arguments with parentheses.
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.
Checklist