From a82dc84eb3822ccd7feaacb67c77e077453ea4da Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Tue, 24 Jul 2018 11:44:15 +0200
Subject: [PATCH] issue #59 WIP: Add a mutation in graphql schema

---
 duniterpy/api/gva/schema.qraphql | 39 +++++++++++++++++++++++++++++---
 1 file changed, 36 insertions(+), 3 deletions(-)

diff --git a/duniterpy/api/gva/schema.qraphql b/duniterpy/api/gva/schema.qraphql
index 558e8ad4..d12e5b2b 100644
--- a/duniterpy/api/gva/schema.qraphql
+++ b/duniterpy/api/gva/schema.qraphql
@@ -1,10 +1,11 @@
 schema {
   query: Query
+  mutation: Mutation
 }
 
-type Query {
-  node: Node
-}
+#################################
+# NODE types
+#################################
 
 type Node {
     summary: Summary
@@ -27,3 +28,35 @@ type Sandboxes {
     memberships: Sandbox!
     transactions: Sandbox!
 }
+
+#################################
+# WOT types
+#################################
+
+type Identity {
+    version: Int!
+    type: String!
+    currency: String!
+    issuer: String!
+    uniqueID: String!
+    timestamp: String!
+    signature: String!
+}
+
+#################################
+# NODE queries
+#################################
+
+type Query {
+  node: Node
+}
+
+#################################
+# WOT mutations
+#################################
+
+type Mutation {
+    addIdentity (
+      signedRaw: String!
+    ): Identity
+}
-- 
GitLab