How to combine UsePaging with AddApolloFederation? #7509
Unanswered
rob-straughan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have several GraphQL APIs built with HotChocolate, and use Paging, Sorting, and Filtering. These APIs use AddApolloFederation, and were publishing their schemas for checks during our build pipeline (using Hive). This schema checking worked fine.
We were on version 13.8.1, and we upgraded to 13.9.12. We are now getting errors relating to the "sharable" status of the entities that Hot Chocolate generates for these features.
The error message is of the format:
Non-shareable field {field name} is resolved from multiple subgraphs: it is resolved from subgraphs {other existing apis} and defined as non-shareable in subgraph {this api}
The fields it is complaining about are:
The only thing I can see in the change log that appears to indicate a potential change is the update to add FederationVersion to the AddApolloFederation, where it has been added as a default optional value in the method signature. I tried setting a specific version (both 1.0 and 2.4) but that does not appear to resolve this issue.
Does anybody know what update needs to be made here to get these generated entities to be marked as sharable, or to more explicitly qualify them to avoid the conflict?
Regards,
Rob.
Beta Was this translation helpful? Give feedback.
All reactions