Fix Federation schema throws error while using multiple Option inputs #211
This commit is contained in:
parent
c7c4de94ed
commit
fcf9477fc2
@ -489,7 +489,7 @@ pub fn generate(object_args: &args::Object, item_impl: &mut ItemImpl) -> Result<
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::all, clippy::pedantic, clippy::suspicious_else_formatting)]
|
#[allow(clippy::all, clippy::pedantic, clippy::suspicious_else_formatting)]
|
||||||
#[allow(unused_braces, unused_variables)]
|
#[allow(unused_braces, unused_variables, unused_parens)]
|
||||||
#[#crate_name::async_trait::async_trait]
|
#[#crate_name::async_trait::async_trait]
|
||||||
impl#generics #crate_name::ObjectType for #self_ty #where_clause {
|
impl#generics #crate_name::ObjectType for #self_ty #where_clause {
|
||||||
async fn resolve_field(&self, ctx: &#crate_name::Context<'_>) -> #crate_name::Result<#crate_name::serde_json::Value> {
|
async fn resolve_field(&self, ctx: &#crate_name::Context<'_>) -> #crate_name::Result<#crate_name::serde_json::Value> {
|
||||||
|
@ -431,7 +431,7 @@ impl Registry {
|
|||||||
.args
|
.args
|
||||||
.values()
|
.values()
|
||||||
.map(|arg| federation_input_value(arg))
|
.map(|arg| federation_input_value(arg))
|
||||||
.join(""),
|
.join(", "),
|
||||||
field.ty
|
field.ty
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
|
Loading…
Reference in New Issue
Block a user