apollographql / federation

🌐  Build and scale a single data graph across multiple services with Apollo's federation gateway.
https://apollographql.com/docs/federation/
Other
668 stars 254 forks source link

Demand control directive validations #3148

Closed tninesling closed 1 month ago

tninesling commented 2 months ago

Adds validations to subgraph directive applications, per the specification in https://ibm.github.io/graphql-specs/cost-spec.html#sec-Validation. These rules primarily assert that the @cost and @listSize directive arguments reference valid fields of the correct type for each application.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 6a1cbcdf87f48c3ff2bc8661718127789ce165ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | --------------------------------------- | ----- | | @apollo/federation-internals | Patch | | @apollo/gateway | Patch | | @apollo/composition | Patch | | @apollo/query-planner | Patch | | @apollo/query-graphs | Patch | | @apollo/subgraph | Patch | | apollo-federation-integration-testsuite | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

netlify[bot] commented 2 months ago

Deploy Preview for apollo-federation-docs canceled.

Name Link
Latest commit 6a1cbcdf87f48c3ff2bc8661718127789ce165ea
Latest deploy log https://app.netlify.com/sites/apollo-federation-docs/deploys/66f1d11654b22f0008c01785
codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.