这是indexloc提供的服务,不要输入任何密码
Skip to content

feat(graphql): add ignore prefixes config option #57

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

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

danielgtaylor
Copy link
Owner

This PR adds a feature to ignore certain URL path prefixes when generating the GraphQL interface. This allows you to opt-out for some paths or groups of paths in the HTTP API, for example if they make no sense in the GraphQL interface or if multiple URL paths (temporarily) resolve to the same Huma handlers in your API.

@codecov
Copy link

codecov bot commented Jul 27, 2022

Codecov Report

Merging #57 (224f50b) into main (2754f42) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   86.62%   86.64%   +0.02%     
==========================================
  Files          24       24              
  Lines        1952     1955       +3     
==========================================
+ Hits         1691     1694       +3     
  Misses        186      186              
  Partials       75       75              
Impacted Files Coverage Δ
graphql.go 86.93% <100.00%> (+0.22%) ⬆️

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 2754f42...224f50b. Read the comment docs.

@danielgtaylor danielgtaylor merged commit 51e4a54 into main Jul 27, 2022
@danielgtaylor danielgtaylor deleted the graphql-ignore-prefix branch July 27, 2022 19:15
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.

2 participants