returnConnection
Fetch returns
Restrictions: User needs to be logged in, results restricted by usertype
With a customer token only the logged-in customer's own returns are returned; with an admin token returns for all customers are returned
returnConnection(
filter: ReturnFilter
sort: [ReturnSort!]! = [object Object]
first: Int! = 30
after: String
offset: Int = 0
): ReturnConnection
Arguments
filter ● ReturnFilter
Manage what data you will get
sort ● [ReturnSort!]!
Which algorithms we will sort by (default: id in ascending order)
first ● Int!
How many returns will be fetched. (default: 30, max: 200)
after ● String
Cursor based pagination. The ID, in this case return ID, of the last item on the previous page.
offset ● Int
Offset based pagination for the returns fetched. (default: 0). Does not work with cursor based pagination 'after'.
Type
ReturnConnection
Represent a paginated list of returns