aerogear/create-graphql

Create a mongoose schema when generating a new type

Open

#38 aberto em 30 de dez. de 2016

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (51 forks)batch import
help wantednew feature

Métricas do repositório

Stars
 (440 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador