deInternetJongens / Lighthouse-Utils

An add-on to Lighthouse to auto-generate CRUD actions from types https://github.com/nuwave/lighthouse
MIT License
26 stars 2 forks source link

Feature/hw 122 #2

Closed kevinpijning closed 6 years ago

kevinpijning commented 6 years ago

Added the ability to add your own GraphQL Schema beside the automated generator. The generator will include all custom GraphQL schema in the global schema file.

The custom schema files may contain @can directives, the parser automatically takes this directives and adds them to the graphql_schema table. Fixes #1

codecov-io commented 6 years ago

Codecov Report

Merging #2 into develop will increase coverage by 3.86%. The diff coverage is 98.78%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop       #2      +/-   ##
=============================================
+ Coverage      72.19%   76.06%   +3.86%     
- Complexity       148      167      +19     
=============================================
  Files             36       38       +2     
  Lines            446      518      +72     
=============================================
+ Hits             322      394      +72     
  Misses           124      124
Impacted Files Coverage Δ Complexity Δ
src/Generators/Classes/ParseDefinitions.php 100% <100%> (ø) 12 <12> (?)
src/Generators/SchemaGenerator.php 62.2% <100%> (+2.7%) 37 <8> (-1) :arrow_down:
src/Generators/Classes/ParsePermissions.php 96.29% <96.29%> (ø) 8 <8> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0b972b7...fc3ff3b. Read the comment docs.