Complete the code to request the cost of a specific field in a GraphQL query.
query { user { name [1] } }The @cost directive with complexity: 5 specifies the cost for the name field.
Complete the code to add a cost directive with a multiplier to a nested field.
query { product { price [1] } }The @cost(multiplier: 3) directive multiplies the cost of the price field by 3.
Fix the error in the cost directive syntax for the field.
query { order { totalPrice [1] } }The correct syntax for directives uses parentheses and colon-separated arguments, like @cost(complexity: 4).
Fill both blanks to correctly apply cost directives with complexity and multiplier.
query { user { posts [1] comments [2] } }The posts field has a complexity of 3, and the comments field has a multiplier of 2 to scale its cost.
Fill all three blanks to define a query with cost directives specifying complexity, multiplier, and a nested field cost.
query { shop [1] products [2] reviews [3] }The shop field has complexity 5, products has a multiplier of 4, and reviews has complexity 2 to define their costs.