mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Worked on the schema code
This commit is contained in:
@@ -11,7 +11,7 @@ const database = require('./database.js');
|
||||
//the handler routines
|
||||
const handler = {
|
||||
Book: (parent, scalars) => {
|
||||
//takes an object which is the result of the parent query, if there is one { typeName: 'Author', scalars: [scalars], context: parentObject }
|
||||
//takes an object which is the result of the parent query, if there is one { typeName: 'Author', scalars: [scalars] }
|
||||
//takes an array of scalar types as objects: { typeName: 'String', name: 'title' }
|
||||
//must return an array of objects containing the results
|
||||
|
||||
@@ -82,4 +82,4 @@ const handler = {
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = handler;
|
||||
module.exports = handler;
|
||||
|
||||
Reference in New Issue
Block a user