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