Hello :slightly_smiling_face: I want to use the ne...
# prisma-whats-new
f
Hello 🙂 I want to use the new
graphcool-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:
Copy 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:
Copy code
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? 🙂
n
please create a bug report here: https://github.com/graphcool/graphcool-binding