Tweaked README.md

This commit is contained in:
2022-02-22 19:41:03 +00:00
parent d063eea628
commit e80bbba302
3 changed files with 6 additions and 6 deletions

View File

@@ -29,10 +29,10 @@ app.use(express.text());
//test the library
const sineQL = require('sineql');
const schema = require('./schema.js');
const queryHandler = require('./query-handler.js');
const queryHandlers = require('./query-handlers.js');
//omit 'createHandler', 'updateHandler' or 'deleteHandler' to disable those methods
const sine = sineQL(schema, { queryHandler }, { debug: true });
//omit 'createHandlers', 'updateHandlers' or 'deleteHandlers' to disable those methods
const sine = sineQL(schema, { queryHandlers }, { debug: true });
//open the endpoint
app.post('/sineql', async (req, res) => {