mirror of
https://github.com/Ratstail91/sineql-demo.git
synced 2026-05-05 15:20:10 +10:00
Fixed the output
This commit is contained in:
@@ -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);
|
||||
|
||||
+11
-1
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user