diff --git a/graph/src/schema/api.rs b/graph/src/schema/api.rs index f38997c69e0..a7c9aa95590 100644 --- a/graph/src/schema/api.rs +++ b/graph/src/schema/api.rs @@ -1343,17 +1343,16 @@ fn sql_field() -> s::Field { position: Pos::default(), description: Some("Access to SQL queries".to_string()), name: SQL_FIELD_NAME.to_string(), - arguments: vec![ - InputValue { - position: Pos::default(), - description: None, - name: String::from("input"), - value_type: Type::NonNullType(Box::new(Type::NamedType(SQL_INPUT_TYPE.to_string()))), - default_value: None, - directives: vec![], - - } - ], + arguments: vec![InputValue { + position: Pos::default(), + description: None, + name: String::from("input"), + value_type: Type::NonNullType(Box::new(Type::NamedType( + SQL_INPUT_TYPE.to_string() + ))), + default_value: None, + directives: vec![], + }], field_type: Type::NamedType(SQL_FIELD_TYPE.to_string()), directives: vec![], }; diff --git a/graphql/src/store/resolver.rs b/graphql/src/store/resolver.rs index 539c2cfe8a3..37e489801a2 100644 --- a/graphql/src/store/resolver.rs +++ b/graphql/src/store/resolver.rs @@ -16,7 +16,6 @@ use graph::schema::{ }; use graph::schema::{ErrorPolicy, BLOCK_FIELD_TYPE}; - use crate::execution::{ast as a, Query}; use crate::metrics::GraphQLMetrics; use crate::prelude::{ExecutionContext, Resolver};