aerogear/create-graphql

Create a mongoose schema when generating a new type

Open

#38 建立於 2016年12月30日

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

倉庫指標

Star
 (440 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南