7assenTlili / node-mongoose-graphql-server

Advanced GraphQL server with Node.js and Mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate for an Advanced GraphQL Server using GraphQL Modules


GraphQL server for Node.js and Mongoose
Advanced GraphQL server for Node.js and Mongoose - using GraphQL Modules.

Project Structure

File name Description

└── src (directory) Contains the source files for your GraphQL server
├── index.js The entry point for your GraphQL server
├── schema.graphql The application main schema that imports models schema definitions defining the API exposed to client applications
├── resolvers.js Contains the implementation of the resolvers for the application schema
└── middlewares (directory) _Contains middlewares implementations _
└── item (directory) Contains item model files
└── item.grapghql The GraphQL schema definition of the item model
└── itemModel.js The Mongoose schema definition of the item collection
└── itemQuery.js The implementation of Query resolvers of item model
└── itemMutation.js The implementation of Mutation resolvers of item model
└── itemResolver.js The implementation of filed resolvers of item model
└── placement (directory) Contains placement model files
└── placement.grapghql The GraphQL schema definition of the placement model
└── placementModel.js The Mongoose schema definition of the placement collection
└── placementQuery.js The implementation of Query resolvers of placement model
└── placementMutation.js The implementation of Mutation resolvers of placement model
└── placementResolver.js The implementation of filed resolvers of placement model

Coming Soon

Add subscription resolvers.

Contributing

Your feedback is very helpful, please share your opinion and thoughts!

About

Advanced GraphQL server with Node.js and Mongoose


Languages

Language:JavaScript 100.0%