You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
farazcsk-zz
changed the title
Create a mongoose model when generating a new type
Create a mongoose schema when generating a new type
Dec 30, 2016
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
The text was updated successfully, but these errors were encountered: