-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix: allow default values for input arguments #1939
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1939 +/- ##
==========================================
+ Coverage 82.08% 82.10% +0.02%
==========================================
Files 173 173
Lines 17623 17644 +21
==========================================
+ Hits 14465 14486 +21
Misses 3158 3158 ☔ View full report in Codecov by Sentry. |
Bencher
🚨 1 ALERT: Threshold Boundary Limit exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
src/core/blueprint/into_schema.rs
Outdated
} else { | ||
async_graphql_value::to_value(args).unwrap_or_default() | ||
}; | ||
|
||
let mut dyn_schema_field = dynamic::Field::new( |
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.
Just call the the dyn_schema_field.arguments(args)
Current implementation is a bit complicated and unnecessary.
Action required: PR inactive for 2 days. |
Action required: PR inactive for 2 days. |
This reverts commit fd6f875.
there is an issue with async-graphql as well, I raised a PR async-graphql/async-graphql#1527 there if it gets merged, I'll finish touchups in this PR. |
Action required: PR inactive for 2 days. |
Issue Reference(s):
Fixes #1931
/claim 1931