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