The first argument is the maximum number of records to fetch as part of your query.
The initial query results can return any number of records up to the number you specify in the first argument. For example, if you request five records and the initial query result returns four records, use the after argument to page to the remaining record.
Note
The after argument is a cursor used to page through the result set. Use a returned cursor to continue paging through the result set from that cursor position. The after argument is typically set to the value of the endCursor field on the relay connection’s PageInfo. If you want to page from a particular element in the result set, use the cursor field from a relay edge.
Paging Through Record Connections Child Relationships
You can page through the child records on a queried parent record. Paging on the parent and children records at the same time isn’t supported.
The child relationships records in the response are paginated and include cursor and pagination information.
Use the first argument to specify the number of records to return. The default is 10.
The maximum number of child relationship records to return can be specified using the first argument. However, if supplying a cursor value to the after argument of a child relationship, then the parent record must be limited to a single result. For example:
Query children records with cursors
1query paginateChild{2 uiapi{3 query{4 Account(first:1){ # must limit to one result as we are paging through the child5 edges{6 node{7 Cases(first:100, after:"djE6Mw=="){8 edges{9 cursor10 node{11 Id12}13}14}15}16}17}18}19}20}