bulletproof-nodejs
bulletproof-nodejs copied to clipboard
How to add GraphQL?
Hi, thanks for your repo and article! I'd really like to understand how and where graphql schemas and resolvers can be embedded into this scaffold structure.
Thanks!
I didn't have the opportunity to work with GraphQL yet, but to my understanding of it, it is an alternative protocol to an API Rest. So, with that in mind, you may just add a new folder, similar to the API folder, and hydrate your resolvers by calling the service you need.
Hi I have written one project refere by this repo and some blog. I am not also worked in graphql but i think it will be good. you can split the structure of api folder like api/rest and api/graphql. you can see that in https://github.com/shadowhijackers/node-js-starter-kit
You folks can checkout my repository for an example about implementing GraphQL with this architecture. It's built with TypeScript on top of Yarn workspaces!