Improved the test

This commit is contained in:
2021-03-31 00:23:07 +11:00
parent 4fa0aa9fac
commit 44812f24db
3 changed files with 85 additions and 16 deletions

View File

@@ -35,7 +35,8 @@ const sineQL = (schema, { queryHandlers }, options = {}) => {
const result = await queryHandlers[queryTree.typeName](queryTree, typeGraph);
if (options.debug) {
console.log('Query tree results:\n', result);
console.log('Query tree results:');
console.dir(result, { depth: null });
}
return [200, result];