Refined the debugging

This commit is contained in:
2021-03-30 06:48:17 +11:00
parent 9d17d350fa
commit 9f4b869d84
7 changed files with 50 additions and 13 deletions

23
test/index.js Normal file
View File

@@ -0,0 +1,23 @@
//the library to test
const sineQL = require('../source/index.js');
//the dummy values
const schema = `
scalar Date
type Book {
String title
Date published
}
type Author {
String name
Book books
}
`;
const handler = null;
//run the function in debug mode (builds type graph)
const sine = sineQL(schema, handler, { debug: true });