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

贡献者指南