9. @requires & @external
1m

Using @requires and @external

Use the schema below to answer the following questions.

Shipping subgraph
# Shiping subgraph
type Product @key(fields: "id") {
id: ID!
size: Int @external
weight: Int @external
shippingEstimate: String @requires(fields: "size weight")
}
Which of the following statements are correct? (Select all that apply)
True or False: You can define more than one field in the @requires directive.
Previous

Share your questions and comments about this lesson

Your feedback helps us improve! If you're stuck or confused, let us know and we'll help you out. All comments are public and must follow the Apollo Code of Conduct. Note that comments that have been resolved or addressed may be removed.

You'll need a GitHub account to post below. Don't have one? Post in our Odyssey forum instead.