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(unused_braces, unused_variables)]
|
||||
#[allow(unused_braces, unused_variables, unused_parens)]
|
||||
#[#crate_name::async_trait::async_trait]
|
||||
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> {
|
||||
|
@ -431,7 +431,7 @@ impl Registry {
|
||||
.args
|
||||
.values()
|
||||
.map(|arg| federation_input_value(arg))
|
||||
.join(""),
|
||||
.join(", "),
|
||||
field.ty
|
||||
)
|
||||
.ok();
|
||||
|
Loading…
Reference in New Issue
Block a user