aerogear/create-graphql

Create a mongoose schema when generating a new type

Open

#38 建立於 2016年12月30日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (440 star) (51 fork)batch import
help wantednew feature

描述

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

貢獻者指南