Skip to main content

leaveRequests

The merchant's leave requests, most recently starting first, as a cursor connection.

**Returns:** One page of leave requests for the acting merchant.

leaveRequests(
first: Int
after: String
last: Int
before: String
employeeId: ID
): LeaveRequestConnection!

Arguments

leaveRequests.first ● Int scalar

Returns the first _n_ elements from the list.

leaveRequests.after ● String scalar

Returns the elements in the list that come after the specified cursor.

leaveRequests.last ● Int scalar

Returns the last _n_ elements from the list.

leaveRequests.before ● String scalar

Returns the elements in the list that come before the specified cursor.

leaveRequests.employeeId ● ID scalar

Restricts the page to one employee's requests. Omit it for the whole merchant.

Type

LeaveRequestConnection object

A connection to a list of items.