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