Skip to content
Snippets Groups Projects
Commit b8207160 authored by jm's avatar jm
Browse files

[ref] gva: remove mutation

parent eb4543de
No related branches found
No related tags found
1 merge request!124WIP: Resolve "Implement Client API GVA : GraphQL Verification Api"
schema { schema {
query: Query query: Query
mutation: Mutation
} }
type Query { type Query {
current: Block @juniper(ownership: "owned") current: Block @juniper(ownership: "owned")
} }
type Mutation
type Block { type Block {
version: Int! version: Int!
currency: String! currency: String!
......
...@@ -19,6 +19,7 @@ use crate::context::Context; ...@@ -19,6 +19,7 @@ use crate::context::Context;
use dubp_block_doc::block::BlockDocumentTrait; use dubp_block_doc::block::BlockDocumentTrait;
use dubp_common_doc::traits::Document; use dubp_common_doc::traits::Document;
use durs_bc_db_reader::BcDbRo; use durs_bc_db_reader::BcDbRo;
use juniper::EmptyMutation;
use juniper::Executor; use juniper::Executor;
use juniper::FieldResult; use juniper::FieldResult;
use juniper_from_schema::graphql_schema_from_file; use juniper_from_schema::graphql_schema_from_file;
...@@ -86,12 +87,6 @@ impl BlockFields for Block { ...@@ -86,12 +87,6 @@ impl BlockFields for Block {
} }
} }
pub struct Mutation;
impl MutationFields for Mutation {
}
pub fn create_schema() -> Schema { pub fn create_schema() -> Schema {
Schema::new(Query {}, Mutation {}) Schema::new(Query {}, EmptyMutation::new())
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment