aerogear/create-graphql

Create a mongoose schema when generating a new type

Aperta

#38 aperta il 30 dic 2016

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (51 fork)batch import
help wantednew feature

Metriche repository

Star
 (440 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I can see that it is possible to create a graphql type or mutation based on an existing mongoose schema using the --schema command, it would be great if creating a model without an existing mongoose schema could generate one.

For example the command:

create-graphql generate -tm User

Generates:

./src/model/User.js

Guida contributor