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

Try implementing subgraph-js using the federation internals #1697

Merged
merged 3 commits into from
Apr 11, 2022

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Apr 8, 2022

No description provided.

@netlify
Copy link

netlify bot commented Apr 8, 2022

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit fbb8fc7

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 8, 2022

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.

@@ -60,6 +61,58 @@ function addTypeNameToPossibleReturn<T>(
return maybeObject as null | (T & { __typename: string });
}

export function entitiesResolver({
Copy link
Contributor

@clenfest clenfest Apr 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any functional change in this file that I'm not seeing or is it just a non-functional refactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not change to the resolver code, but it extract it as a method because it's called in buildSubgraphSchema directly now.

@@ -593,7 +593,7 @@ describe('@core/@link handling', () => {

type Query {
_entities(representations: [_Any!]!): [_Entity]!
_service: _Service
_service: _Service!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this change?

@pcmanus pcmanus marked this pull request as ready for review April 11, 2022 13:07
@pcmanus pcmanus merged commit f18764a into apollographql:main Apr 11, 2022
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