Complete the code to fetch the first 5 items in a paginated GraphQL query.
query { items([1]: 5) { edges { node { id name } } } }The first argument fetches the first N items in a paginated list.
Complete the code to fetch items after a given cursor in a paginated GraphQL query.
query { items(first: 5, [1]: "cursor123") { edges { node { id name } } } }The after argument specifies the cursor after which to fetch items.
Fix the error in the query to correctly paginate items after a cursor.
query { items([1]: 5, after: "cursor123") { edges { node { id name } } } }The first argument must be used with after to fetch the next set of items after the cursor.
Fill both blanks to fetch the first 10 items after a cursor in a GraphQL query.
query { items([1]: 10, [2]: "cursor456") { edges { node { id name } } } }Use first to specify the number of items and after to specify the cursor after which to fetch.
Fill all three blanks to fetch the first 3 items after a cursor and request their id, name, and createdAt fields.
query { items([1]: 3, [2]: "cursor789") { edges { node { id [3] createdAt } } } }Use first and after for pagination, and include name as a requested field.