Integrating Typescript with Graphql using Type-Graphql, a modern framework for building Graphql Node JS APIs
- Typegoose,
@typegoose/typegoose
A library for defining Mongoose models using TypeScript classes. - Type-Graphql, A library for creating GraphQL schema and resolvers with TypeScript, using
classes
anddecorators magic
:)! - Apollo-server-express,
apollo-server-express
, A library for quickly bootstrapping graphql servers with Apollo and Express
Note: Run npm install
to install all the projects dependencies...
db.users.insert({"username" : "lei", "email" : "[email protected]", "password" : "$2b$10$BOl5XcBlAXTkrwnRWoxM5uggwqPdKZroJrml/sIVthEmNphZ2x6Iu", "roles" : [ { value:"ADMIN", title: "ADMIN" }]});
db.users.remove({roles: {$nin: [ { value:"ADMIN", title: "ADMIN" }]}});
- coverage -- OK
- more tests...
- pagination -- OK
- pub/sub
- react client