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 core defs to in buildSubgraphSchema #1554

Merged
merged 38 commits into from
Apr 8, 2022
Merged

add core defs to in buildSubgraphSchema #1554

merged 38 commits into from
Apr 8, 2022

Conversation

queerviolet
Copy link
Contributor

@queerviolet queerviolet commented Mar 2, 2022

always emit a core schema from buildSubgraphSchema for fed v2 schemas.

fed v1 schemas will not have core markings added, but will have any missing definitions of federation directives filled in

Ashi Krishnan added 2 commits March 24, 2022 16:59
@netlify
Copy link

netlify bot commented Mar 24, 2022

Deploy Preview for apollo-federation-docs canceled.

Name Link
🔨 Latest commit ad45d01
🔍 Latest deploy log https://app.netlify.com/sites/apollo-federation-docs/deploys/625051f9cafe3f00085201f5

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 25, 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.

@queerviolet queerviolet marked this pull request as ready for review March 25, 2022 00:13
@queerviolet
Copy link
Contributor Author

ptal, i think this is ready to go

Copy link
Contributor

@benweatherman benweatherman left a comment

Choose a reason for hiding this comment

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

🐐

@queerviolet queerviolet merged commit ad2dcd3 into main Apr 8, 2022
@queerviolet queerviolet deleted the subgraph-core branch April 8, 2022 15:38
@queerviolet
Copy link
Contributor Author

thanks!

@ruben-nogueira
Copy link

ruben-nogueira commented Apr 11, 2022

After upgrading to 2.0.0-preview.12 I'm getting those errors.

Error: Must provide only one schema definition.

There can be only one query type in schema.

There can be only one mutation type in schema.

Those types are using the extend type Query or extend type Mutation (we have some of them). @queerviolet Can you please confirm if it's related with PR? Thanks!

@cpeacock
Copy link
Contributor

Hi @ruben-nogueira! Could you open another issue and/or please send me your generated supergraph schemas? These errors seem to be coming from graphql-js, which probably means there's a duplication of the schema definition somewhere or something similar, we're taking a look at it.

@ruben-nogueira
Copy link

@cpeacock thanks for your response. I created a new issue here: #1703

benweatherman added a commit that referenced this pull request Apr 11, 2022
We're seeing issues generating schemas with the new core-schema codepath #1703. Reverting until we can issue a more complete fix.
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.

6 participants