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.

NestJS GraphQL like for discovering Cypher files

See original GitHub issue

https://docs.nestjs.com/graphql/quick-start#schema-first

Currently, new NestJS apps that are created by the CLI uses Webpack under the hood to build and run the application even in dev mode (off of dist folder). Hence, the current approach of using directory path for @InjectCypher() doesn’t work unless users copy the .cypher files manually (or alter NestCLI webpack config).

Utilizing an approach like typePaths from nestjs/graphql might be a better solution for .cypher

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
yinonburganskycommented, Jul 2, 2021

According to NestJS Docs: we can copy assets to the dist directory by modifying nest-cli.json:

{
  ...
  "compilerOptions": {
    "assets": ["**/*.cypher"],
    "watchAssets": true
  }
}
1reaction
jasperbluescommented, Nov 13, 2020

Even if we can reduce the number of folks needing to use a work-around that will add value, and it can be improved incrementally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating API in NestJS With @graphql/neo4j and AWS Cognito
I'm sharing my experience as a blog post so that anyone with a similar need will find something that can be used as...
Read more >
Nestjs - how to query data. Making first recommendations
In this video we will refactor existing code using cypher -query-builder and we will add recommendations we created in the previous video.
Read more >
Encryption and Hashing - A progressive Node.js framework
Node.js provides a built-in crypto module that you can use to encrypt and decrypt strings, numbers, buffers, streams, and more. Nest itself does...
Read more >
NestJS + GraphQL + Neo4j - Medium
$ cd graphql-neo4j && code . Now, we will delete some files as these are not needed particularly for this example ...
Read more >
Building A GraphQL Server With Next.js - William Lyon
js API routes, the Neo4j GraphQL library, Vercel and Neo4j Aura. Subscribe To Will's Newsletter. Want to know when the next blog post...
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