mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 10:44:28 +11:00
Refined the debugging
This commit is contained in:
23
test/index.js
Normal file
23
test/index.js
Normal 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 });
|
||||
|
||||
Reference in New Issue
Block a user