aerogear/create-graphql

Create a mongoose schema when generating a new type

Open

#38 ouverte le 30 déc. 2016

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (51 forks)batch import
help wantednew feature

Métriques du dépôt

Stars
 (440 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur