modification adding limit and where to event
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
query listEvents (
|
||||
$orderByDate: OrderDirection
|
||||
$orderByCreatedDate: OrderDirection,
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
events(
|
||||
orderBy: { date: $orderByDate }
|
||||
orderBy: {
|
||||
date: $orderByDate
|
||||
createdDate: $orderByCreatedDate
|
||||
}
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
@@ -101,20 +105,21 @@ query filterEvents(
|
||||
$contractType: ContractType,
|
||||
$clientEmail: String
|
||||
) @auth(level: USER) {
|
||||
events(where: {
|
||||
status: { eq: $status }
|
||||
businessId: { eq: $businessId }
|
||||
vendorId: { eq: $vendorId }
|
||||
isRecurring: { eq: $isRecurring }
|
||||
isRapid: { eq: $isRapid }
|
||||
isMultiDay: { eq: $isMultiDay }
|
||||
recurrenceType: { eq: $recurrenceType }
|
||||
date: { eq: $date }
|
||||
hub: { eq: $hub }
|
||||
eventLocation: { eq: $eventLocation }
|
||||
contractType: { eq: $contractType }
|
||||
clientEmail: { eq: $clientEmail }
|
||||
}) {
|
||||
events(
|
||||
where: {
|
||||
status: { eq: $status }
|
||||
businessId: { eq: $businessId }
|
||||
vendorId: { eq: $vendorId }
|
||||
isRecurring: { eq: $isRecurring }
|
||||
isRapid: { eq: $isRapid }
|
||||
isMultiDay: { eq: $isMultiDay }
|
||||
recurrenceType: { eq: $recurrenceType }
|
||||
date: { eq: $date }
|
||||
hub: { eq: $hub }
|
||||
eventLocation: { eq: $eventLocation }
|
||||
contractType: { eq: $contractType }
|
||||
clientEmail: { eq: $clientEmail }
|
||||
}) {
|
||||
id
|
||||
eventName
|
||||
status
|
||||
|
||||
Reference in New Issue
Block a user