question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I just tried to run your simple example. Looks like its only generating the books files. This the error im getting:

$ babel-node create.js
(node:14463) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT:no such file or directory, open '/Users/shingdev/code/graphql-metadata copy/src/createGraphqlSchema/resolverTemplate.js'
(node:14463) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  • test dir tree
$ tree
β”œβ”€β”€ create.js
β”œβ”€β”€ index.js
β”œβ”€β”€ node_modules
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ projectSetupA.js
└── test
     └── testProject1
        └── graphQL
            └── Book
                β”œβ”€β”€ Book.js
               └── schema.js


3 directories, 2 files

FYI

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
arackafcommented, Oct 20, 2017

Ugh solution was so simple, too 😦

https://github.com/substack/node-mkdirp

Will try to get a patch version out tonight

1reaction
arackafcommented, Oct 20, 2017

0.1.1 is released πŸ˜„

Here’s a fully working repo that generates the schema and resolvers

https://github.com/arackaf/test-mongo-graphql-starter

after npm installing, either run node index to see it work with the ESM loader, or node runItNode for the pure Node solution. I’ll prolly polish this repo up and wind up adding it to the docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nice idea definition and meaning | Collins English Dictionary
Nice idea definition: An idea is a plan, suggestion , or possible course of action. | Meaning, pronunciation, translations and examples.
Read more >
Nice idea Definition & Meaning - Merriam-Webster
The meaning of NICE IDEA is a good idea. How to use nice idea in a sentence.
Read more >
which one is correct "nice idea" or "good idea"? - Hello English
Both are correct.
Read more >
Nice Idea - YouTube
Nice Idea. 171K views 16 years ago. muujguu. muujguu. 277 subscribers. Subscribe. 336. I like this. I dislike this.
Read more >
Nice Idea synonyms - 227 Words and Phrases for Nice Idea
Synonyms for Nice idea Β· great idea Β· right idea Β· best idea Β· excellent idea Β· fine idea Β· brilliant idea Β·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found