Skip to content

Commit

Permalink
updating query to only get enabled events
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwaltosssw committed Jun 18, 2024
1 parent 384928b commit 170ab54
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions tina/queries/queries.gql
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,18 @@ query logosContentQuery($relativePath: String!) {
}
}

query getFutureEventsQuery($fromDate: String!, $top: Float!, $after: String, $calendarType: String) {
query getFutureEventsQuery(
$fromDate: String!
$top: Float!
$after: String
$calendarType: String
) {
eventsCalendarConnection(
filter: { endDateTime: { after: $fromDate }, calendarType: { eq: $calendarType } }
filter: {
endDateTime: { after: $fromDate }
calendarType: { eq: $calendarType }
enabled: { eq: true }
}
sort: "startDateTime"
first: $top
after: $after
Expand All @@ -216,9 +225,18 @@ query getFutureEventsQuery($fromDate: String!, $top: Float!, $after: String, $ca
}
}

query getPastEventsQuery($fromDate: String!, $top: Float!, $before: String, $calendarType: String) {
query getPastEventsQuery(
$fromDate: String!
$top: Float!
$before: String
$calendarType: String
) {
eventsCalendarConnection(
filter: { startDateTime: { before: $fromDate }, calendarType: { eq: $calendarType } }
filter: {
startDateTime: { before: $fromDate }
calendarType: { eq: $calendarType }
enabled: { eq: true }
}
sort: "startDateTime"
last: $top
before: $before
Expand Down

0 comments on commit 170ab54

Please sign in to comment.