You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeReview {
id: ID! # The @provides directive tells us that this source schema can supply different # fields depending on which concrete type of Product is returned.product: Product@provides(
fields: """ ... on Book { author } ... on Clothing { size } """
)
}
interfaceProduct@key(fields: "id") {
id: ID!
}
typeBookimplementsProduct {
id: ID!title: String!author: String!@external
}
typeClothingimplementsProduct {
id: ID!name: String!size: String!@external
}
typeQuery {
reviews: [Review!]!
}
The spec doesn't include an example like this, which might be useful, even though the algorithm doesn't really define how "references field in @provides" is actually implemented.
The text was updated successfully, but these errors were encountered:
There are two examples of
@provides
usage that are not covered by the spec for the "External Unused" rule:Example 1
Sub-selections:
The spec algorithm fails here, since it expects a
@provides
directive on a field returningProductVariation
.Example 2
Fragments:
The spec doesn't include an example like this, which might be useful, even though the algorithm doesn't really define how "references field in
@provides
" is actually implemented.The text was updated successfully, but these errors were encountered: