accountMembershipquery. Imagine you want to know the first ten
accountyou are attached to. Submit the query as follows:
Connection. A connection takes four optional forms:
first: the number of elements to load.
after: the index (a unique reference in string form) from which you will load the following elements.
before: the index (a unique reference in string form) from which you will load the preceding elements.
filters: a filtering table you can apply to your list of connections.
edges. Each edge contains a
nodethat corresponds to an element. If you have at least ten accounts this request will return ten
edgeseach one containing a
node, which itself contains an
edgealso contains a very important
cursorattribute. This attribute serves as an opaque index for the list you are currently browsing. Therefore, if you wish to load the ten following
AccountMembership, you just have to call the last
cursorand call the request back:
totalCountattribute and a
pageInfosobject. The first seems pretty straightforward; it provides the total number of elements in the list. The second will allow you to recuperate a bunch of information on the current and neighbouring pages: