fabien0102
12/15/2017, 9:30 AMgraphcool-binding
on my graphcool endpoint (to avoid rewrite all my mutations for my data migration 🙂 ) but it's not working…
I have a classic graphcool project (graphcool/0.10.1) with types.graphql
in my graphcool.yml, a generated schema provide by graphql get-schema
and trying to use this with the following code:
const graphcool = new Graphcool({
schemaPath: "schema.graphql",
endpoint,
secret: token
});
console.log(await graphcool.query.biomarkers(null, "{id labKey}"));
And I have this as error:
TypeError: Cannot read property 'type' of undefined
at Object.getTypeForRootFieldName (D:\Projets\baze\nis-graphcool\node_modules\graphcool
-binding\dist\src\utils.js:29:54)
at Object.buildFragmentInfo (D:\Projets\baze\nis-graphcool\node_modules\graphcool-bindi
ng\dist\src\prepareInfo.js:41:24)
at Proxy.<anonymous> (D:\Projets\baze\nis-graphcool\node_modules\graphcool-binding\dist
\src\index.js:103:38)
at module.exports (D:\Projets\baze\nis-graphcool\migration\uploadToGraphcool.js:29:37)
at inquirer.prompt.then (D:\Projets\baze\nis-graphcool\migration\main.js:90:13)
at <anonymous>
Any ideas to fix this? 🙂nilan
12/15/2017, 7:28 PM