From 5563b20727f833c36025de25f9689427785a7dff Mon Sep 17 00:00:00 2001 From: Anthony Lee Date: Fri, 3 Nov 2017 13:18:08 -0500 Subject: [PATCH] Add mutation in GraphiQL mutation { addUser(firstName: "Anthony", age: 25) { id firstName age } } --- graphql/db.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graphql/db.json b/graphql/db.json index 80b4ea2..f30ee0c 100644 --- a/graphql/db.json +++ b/graphql/db.json @@ -21,7 +21,8 @@ { "firstName": "Anthony", "age": 26, - "id": "yOTVhLU" + "id": "yOTVhLU", + "companyId": "2" } ], "companies": [ @@ -36,4 +37,4 @@ "description": "search" } ] -} \ No newline at end of file +}