Complete the code to define a shared type in a subgraph schema.
type Product @key(fields: "id") { id: ID! name: String! [1]: Float }
The price field is commonly shared across subgraphs to represent product cost.
Complete the code to extend a shared type in another subgraph.
extend type Product @key(fields: "id") { id: ID! [1]: String }
The manufacturer field is often added in an extension to provide additional product details.
Fix the error in the shared type definition by completing the directive.
type User @[1](fields: "id") { id: ID! username: String! }
The @key directive marks the primary key field for the shared type.
Fill both blanks to correctly mark a field as shared and external.
extend type Review @key(fields: "id") { id: ID! username: String @[1] @[2] }
The username field is marked as external to indicate it is defined in another subgraph.
Fill all three blanks to define a shared type with a key and external field.
type Product @[1](fields: "id") { id: ID! name: String! price: Float @[2] @[3] }
The @key directive marks the primary key. The price field is marked external to indicate it is shared from another subgraph.