pwweb / artomator

Artomator: Custom commands making life easier for Laravel.
MIT License
4 stars 1 forks source link

Generating GraphQL Mutations not working #28

Closed rabrowne85 closed 4 years ago

rabrowne85 commented 4 years ago

The generator is not adding the GraphQL Mutations to the schema file.

rabrowne85 commented 4 years ago

Looking into this, it would appear that the code assumes a prior type Mutations() {} definition.

The default lighthouse schema file does not have this. Therefore the Artomator will need to check for a default one and if not add one to the file first.

rabrowne85 commented 4 years ago

Fixed in last commit: 1fb286334541514299261dd32daa000c831bf66f