LeaveRequest
A request from an employee for a period of time off, together with where it currently sits in the merchant's approval workflow.
type LeaveRequest implements Node {
id: ID!
employeeId: ID!
type: LeaveType!
fromDate: Date!
toDate: Date!
status: LeaveStatus!
note: String
}
Fields
LeaveRequest.id ● ID! non-null scalar
The stable identifier of this leave request.
LeaveRequest.employeeId ● ID! non-null scalar
The employee who asked for the time off.
LeaveRequest.type ● LeaveType! non-null enum
The category of time off being claimed.
LeaveRequest.fromDate ● Date! non-null scalar
The first day of the requested absence, inclusive.
LeaveRequest.toDate ● Date! non-null scalar
The last day of the requested absence, inclusive.
LeaveRequest.status ● LeaveStatus! non-null enum
Where the request currently sits in the approval workflow.
LeaveRequest.note ● String scalar
The reason the employee gave for the request, if they gave one.
Interfaces
Node interface
The node interface is implemented by entities that have a global unique identifier.
Member Of
LeaveRequestConnection object ● LeaveRequestCreated object ● LeaveRequestEdge object