bulletproof-nodejs icon indicating copy to clipboard operation
bulletproof-nodejs copied to clipboard

How to add GraphQL?

Open Ren22 opened this issue 4 years ago • 3 comments

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!

Ren22 avatar Feb 09 '20 22:02 Ren22

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.

santiq avatar Feb 10 '20 12:02 santiq

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

shadowhijackers avatar Mar 25 '20 14:03 shadowhijackers

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!

SnekNOTSnake avatar Mar 15 '21 21:03 SnekNOTSnake