From 3c7dd332325c09f9030a0863faa12e01d5b9e821 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 3 Jun 2023 22:52:55 +1000 Subject: [PATCH] Fixed the output --- server/type-handlers/author-handlers.js | 5 +---- tools/request.rest | 12 +++++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/server/type-handlers/author-handlers.js b/server/type-handlers/author-handlers.js index 2958161..f8b7c5f 100644 --- a/server/type-handlers/author-handlers.js +++ b/server/type-handlers/author-handlers.js @@ -49,10 +49,7 @@ const queryAuthor = async (query, typeGraph) => { try { //search the database - return await Author.findAll({ - ...authorFields, - raw: true, - }); + return await Author.findAll(authorFields); } catch(e) { console.log(e); diff --git a/tools/request.rest b/tools/request.rest index 9b17804..b60f1e6 100644 --- a/tools/request.rest +++ b/tools/request.rest @@ -78,7 +78,7 @@ Content-Type: text/plain create Author [ { - create name "Just Kidding" + create name "Just Kidding 'Round" match books [ { match title "Yeah, I Got Nothing" @@ -95,3 +95,13 @@ create Author [ ### +POST https://sineql-demo.krgamestudios.com/sineql HTTP/1.1 +Content-Type: text/plain + +Author { + name + books { + title + published + } +} \ No newline at end of file