Create two or more subgraphs that each use [UsePaging] from Hot Chocolate.
Try to compose them, and receive the error:
INVALID_FIELD_SHARING: Non-shareable field "PageInfo.hasNextPage" is resolved from multiple subgraphs: it is resolved from subgraphs "A", "B" and "C" and defined as non-shareable in all of them
INVALID_FIELD_SHARING: Non-shareable field "PageInfo.hasPreviousPage" is resolved from multiple subgraphs: it is resolved from subgraphs "A", "B" and "C" and defined as non-shareable in all of them
INVALID_FIELD_SHARING: Non-shareable field "PageInfo.startCursor" is resolved from multiple subgraphs: it is resolved from subgraphs "A", "B" and "C" and defined as non-shareable in all of them
INVALID_FIELD_SHARING: Non-shareable field "PageInfo.endCursor" is resolved from multiple subgraphs: it is resolved from subgraphs "A", "B" and "C" and defined as non-shareable in all of them
Each of the subgraphs separately define PageInfo, this isn't explcit but is created by Hot Chocolate:
"Information about pagination in a connection."
type PageInfo {
"Indicates whether more edges exist following the set defined by the clients arguments."
hasNextPage: Boolean!
"Indicates whether more edges exist prior the set defined by the clients arguments."
hasPreviousPage: Boolean!
"When paginating backwards, the cursor to continue."
startCursor: String
"When paginating forwards, the cursor to continue."
endCursor: String
}
[UsePaging]
from Hot Chocolate.Each of the subgraphs separately define
PageInfo
, this isn't explcit but is created by Hot Chocolate: