From ea46dea6798d3c7b4e08f3823bd77eedde914e26 Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Tue, 24 Jul 2018 09:10:12 +0000
Subject: [PATCH] Add mutation addIdentity in schema

---
 ...003 RFC GraphQL API for Duniter Clients.md | 39 +++++++++++++++++--
 1 file changed, 36 insertions(+), 3 deletions(-)

diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md
index 8611d24..373fcaf 100644
--- a/rfc/0003 RFC GraphQL API for Duniter Clients.md	
+++ b/rfc/0003 RFC GraphQL API for Duniter Clients.md	
@@ -381,11 +381,12 @@ The SSL endpoint string is:
 ```graphql
 schema {
   query: Query
+  mutation: Mutation
 }
 
-type Query {
-  node: Node
-}
+#################################
+# NODE types
+#################################
 
 type Node {
     summary: Summary
@@ -409,6 +410,38 @@ type Sandboxes {
     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