Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Fixes for generated schema type and default config #339

Merged
merged 13 commits into from
Nov 6, 2019
Merged

Fixes for generated schema type and default config #339

merged 13 commits into from
Nov 6, 2019

Conversation

michaeldgraham
Copy link
Collaborator

@michaeldgraham michaeldgraham commented Nov 6, 2019

This PR addresses issues #337 and #338 and contains some refactoring of how operation types (Query, Mutation, etc.) get handled in the augmentation process.

augmentOperationType now serves as a separate entry point for the augmentation of any operation type, Query, etc., Various helpers used for getting or setting values in a given schema type definition have also been added
schemaTypeDefinition is now returned from mapDefinitions, and the inline default configuration is removed
MutationB is changed back to Mutation to hit the logic that also handles checking for the existance of a default generated Mutation operation type, when completing fields on a schema type
Tests that a default of true still gets used when a configuration object is provided, rather than mistakenly requiring the user to explicitly set query, mutation, etc., to true
@codecov-io
Copy link

codecov-io commented Nov 6, 2019

Codecov Report

Merging #339 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #339      +/-   ##
==========================================
+ Coverage   96.46%   96.51%   +0.04%     
==========================================
  Files          24       24              
  Lines        2606     2643      +37     
==========================================
+ Hits         2514     2551      +37     
  Misses         92       92
Impacted Files Coverage Δ
src/augment/types/relationship/relationship.js 100% <ø> (ø) ⬆️
src/augment/types/node/node.js 100% <100%> (ø) ⬆️
src/augment/fields.js 100% <100%> (ø) ⬆️
src/augment/types/node/query.js 100% <100%> (ø) ⬆️
src/augment/augment.js 93.06% <100%> (-2.36%) ⬇️
src/augment/types/types.js 100% <100%> (ø) ⬆️
src/augment/types/relationship/query.js 98.9% <100%> (-0.02%) ⬇️
src/index.js 71.87% <100%> (-0.44%) ⬇️

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 42f6ca3...6615910. Read the comment docs.

@johnymontana johnymontana merged commit c2f4328 into neo4j-graphql:master Nov 6, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants