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,7 +105,8 @@ query filterEvents(
|
|||||||
$contractType: ContractType,
|
$contractType: ContractType,
|
||||||
$clientEmail: String
|
$clientEmail: String
|
||||||
) @auth(level: USER) {
|
) @auth(level: USER) {
|
||||||
events(where: {
|
events(
|
||||||
|
where: {
|
||||||
status: { eq: $status }
|
status: { eq: $status }
|
||||||
businessId: { eq: $businessId }
|
businessId: { eq: $businessId }
|
||||||
vendorId: { eq: $vendorId }
|
vendorId: { eq: $vendorId }
|
||||||
|
|||||||
Reference in New Issue
Block a user