Create keyword is working, very complex

This commit is contained in:
2021-04-06 10:57:28 +10:00
parent 972866a704
commit 7860f328d7
5 changed files with 104 additions and 45 deletions

View File

@@ -7,7 +7,7 @@ const { books, authors } = require('./database/models');
//create the dummy data
sequelize.sync().then(async () => {
//*
return; //DEBUG: delete this for debugging
// return; //DEBUG: delete this for debugging
await sequelize.query('DELETE FROM authors;');
await sequelize.query('DELETE FROM books;');
@@ -72,7 +72,7 @@ const queryHandlers = require('./handlers/query-handlers');
const createHandlers = require('./handlers/create-handlers');
//run the setup function to create the closure (creates the type graph)
const sine = sineQL(schema, { queryHandlers, /* createHandlers */ }, { debug: true });
const sine = sineQL(schema, { queryHandlers, createHandlers }, { debug: false });
//actually ask the question
(async () => {