laravel-graphql icon indicating copy to clipboard operation
laravel-graphql copied to clipboard

Consider adding artisan command?

Open kwen8 opened this issue 7 years ago • 4 comments

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

kwen8 avatar Feb 10 '18 03:02 kwen8

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

kikoseijo avatar Feb 10 '18 12:02 kikoseijo

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 avatar Feb 10 '18 12:02 kikoseijo

@kikoseijo wow! That's what i'm talking about, hope that the artisan command will be add to package soon~~

kwen8 avatar Feb 12 '18 09:02 kwen8

@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

StefanJanssen95 avatar Feb 13 '18 14:02 StefanJanssen95