Fixed the output

This commit is contained in:
2023-06-03 22:52:55 +10:00
parent 71c201cae5
commit 3c7dd33232
2 changed files with 12 additions and 5 deletions
+1 -4
View File
@@ -49,10 +49,7 @@ const queryAuthor = async (query, typeGraph) => {
try { try {
//search the database //search the database
return await Author.findAll({ return await Author.findAll(authorFields);
...authorFields,
raw: true,
});
} }
catch(e) { catch(e) {
console.log(e); console.log(e);
+11 -1
View File
@@ -78,7 +78,7 @@ Content-Type: text/plain
create Author [ create Author [
{ {
create name "Just Kidding" create name "Just Kidding 'Round"
match books [ match books [
{ {
match title "Yeah, I Got Nothing" 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
}
}