Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add schema definition deep copying and mechanism to inspect or alter schema definitions before compilation #58

Merged
merged 1 commit into from
May 2, 2023

Conversation

ccbrown
Copy link
Owner

@ccbrown ccbrown commented May 2, 2023

This PR adds a Clone method to the schema definition types.

This also adds a mechanism to inspect and alter the schema definition before it's built.

What it Does

Steps to Test

go test -v ./...

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #58 (5cf3ae8) into main (0ebcee0) will decrease coverage by 1.21%.
The diff coverage is 49.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   81.19%   79.99%   -1.21%     
==========================================
  Files          55       56       +1     
  Lines        4376     4558     +182     
==========================================
+ Hits         3553     3646      +93     
- Misses        537      611      +74     
- Partials      286      301      +15     
Impacted Files Coverage Δ
graphql/schema/inspect.go 84.21% <33.33%> (+4.72%) ⬆️
config.go 80.00% <40.00%> (-4.79%) ⬇️
graphql/schema/deep_copy.go 50.00% <50.00%> (ø)
graphql/schema/schema.go 77.65% <100.00%> (+0.24%) ⬆️

... and 1 file with indirect coverage changes

@ccbrown ccbrown merged commit 521faea into main May 2, 2023
@ccbrown ccbrown deleted the graphql-schema-deep-copy branch May 2, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant