laravel-graphql
laravel-graphql copied to clipboard
Consider adding artisan command?
I think it's tedious when i add Type php class or Query class, so have u ever thought about adding artisan command? such as php artisan graphql:type UserType
Hummmmm,,,
what about this:
make
make:graphql:enum Create a new GraphQL enum class
make:graphql:field Create a new GraphQL field class
make:graphql:interface Create a new GraphQL interface class
make:graphql:mutation Create a new GraphQL mutation class
make:graphql:query Create a new GraphQL query class
make:graphql:scalar Create a new GraphQL scalar class
make:graphql:type Create a new GraphQL type class
make:migration Create a new migration file
make:relay:connection Create a new GraphQL Relay connection
make:relay:input Create a new GraphQL Relay mutation input class
make:relay:mutation Create a new GraphQL Relay mutation class
make:relay:node Create a new GraphQL Relay node class
make:relay:payload Create a new GraphQL Relay mutation payload class
make:seeder Create a new seeder class
What I suggest its join the mutation with inputs and payload, was thinking in making anew one that will make them 3 in 1 command.
@kikoseijo wow! That's what i'm talking about, hope that the artisan command will be add to package soon~~
@kwen8 That's in the package for about 4 or 5 months I think, I created it myself for a project at work and thus added this into this repo :D