aerogear/create-graphql

Create a mongoose schema when generating a new type

Open

#38 geöffnet am 30. Dez. 2016

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (440 Stars) (51 Forks)batch import
help wantednew feature

Beschreibung

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

Contributor Guide