Skip to content
Console(opens in a new tab)

Connection

A record does not contain its related records.

How do I reach the records that hold the answer?

A record does not contain its related records. It connects to them. Every relationship has the same shape: the field names the relationship, edges is the list, and node is one related record. The list is ranked, and first says how many you get.

The default for first differs by connection. Each entity page lists it beside the connection.

Argument Type Description
first Int The number of edges to return from the start of the list, or from the after cursor. The value must be 0 or more.
last Int Keeps only the final edges of the page that the other arguments select. Because first has a default, last alone trims the default page, not the full list. The value must be 0 or more.
after String Returns the edges after the edge with this cursor. Take the cursor from endCursor or from an edge cursor in an earlier response. A cursor works only with the same filter and orderBy that produced it.
before String Limits the edges to those before the edge with this cursor. A cursor works only with the same filter and orderBy that produced it.
conditions ConnectionConditions Filters and sorts the edges of this connection.