mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
throw 'Nothing here is working';
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
/* DOCS: parameter types
|
||||
/* DOCS: handler parameter types
|
||||
parent: Type | null
|
||||
scalars: [{ typeName: String, name: String, filter: any | null }, ...]
|
||||
matching: Boolean
|
||||
*/
|
||||
|
||||
//BUG: Book { author { name } } - this gives a weird result
|
||||
|
||||
const database = require('./database.js');
|
||||
|
||||
//the handler routines
|
||||
const handler = {
|
||||
//type queries
|
||||
Author: (parent, scalars, matching) => {
|
||||
console.log("Author", parent ? parent.context : null);
|
||||
|
||||
let authors;
|
||||
|
||||
//check parentage
|
||||
@@ -92,8 +92,6 @@ const handler = {
|
||||
},
|
||||
|
||||
Book: (parent, scalars, matching) => {
|
||||
console.log("Book", parent ? parent.context : null);
|
||||
|
||||
let books;
|
||||
|
||||
//check parentage
|
||||
|
||||
Reference in New Issue
Block a user