Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Error when adding directive declarative to SDL #116

Closed
johnymontana opened this issue Oct 1, 2018 · 0 comments
Closed

Error when adding directive declarative to SDL #116

johnymontana opened this issue Oct 1, 2018 · 0 comments

Comments

@johnymontana
Copy link
Contributor

When adding a directive declarative to the schema SDL:

directive @cypher on FIELD

I get this error:

[nodemon] starting `babel-node src/index.js`
/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/utils.js:482
  return relatedAstNode.directives.find(function (e) {
                                   ^

TypeError: Cannot read property 'find' of undefined
    at getTypeDirective (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/utils.js:482:36)
    at /Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/utils.js:560:21
    at Array.reduce (<anonymous>)
    at createRelationMap (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/utils.js:556:39)
    at augmentTypeMap (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/augment.js:30:50)
    at makeAugmentedExecutableSchema (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/augmentSchema.js:47:54)
    at makeAugmentedSchema (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/neo4j-graphql-js/dist/index.js:549:59)
    at Object.<anonymous> (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/src/index.js:193:25)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at loader (/Users/lyonwj/Dropbox/github/johnymontana/grand-stack-starter-auth0/api/node_modules/babel-register/lib/node.js:144:5)
[nodemon] app crashed - waiting for file changes before starting...


# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant