0.1.1 • Published 5 years ago

generator-apollo-server-with-mongodb v0.1.1

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

This is Yeoman generator for fast creation graphql server with:

  • Apollo Server
  • mongoose
  • mongodb

It generates full server with authorization

It is fully compatible with this web-app:

npm i generator-web-app-with-graphql

https://github.com/Krill221/generator-web-app-with-graphql

Get started:

To generate server type in console:

yo generator-apollo-server-with-mongodb

than follow instructions

To start local server simply type:

yarn s

It also has simple generators:

To add new model (for example for model "Post") simply type in console:

yarn add-model Post name:String desc:String

To add new fields to model type in console:

yarn add-fields Post body:String img:String

To delete fields from model type in console:

yarn delete-fields Post body:String img:String

To add new has-one relation field to model type in console:

yarn add-has-one Post Comment name:String desc:String

To delete has-one relation field from model type in console:

yarn delete-has-one Post Comment

To add new has-many relation field to model type in console:

yarn add-has-many Post Comment

To delete has-many relation field to model type in console:

yarn delete-has-many Post Comment

To add estimate's array field to model type in console:

yarn add-estimates Post like:Float stars:Float

To delete estimate's array field to model type in console:

yarn delete-estimates Post like:Float stars:Float
0.1.1

5 years ago

0.1.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago