Skip to content

Commit

Permalink
fix: query syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tinuola committed Sep 5, 2024
1 parent 9f28c75 commit e9c0e57
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gql/queries/FTVAEventSeriesDetail.gql
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
}
}
}
upcomingEvents: entries(section: "ftvaEvent", sectionHandle: "ftvaEventSeries", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: ">= now", orderBy: "startDateWithTime ASC") {
upcomingEvents: entries(section: "ftvaEvent", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: ">= now", orderBy: "startDateWithTime ASC") {
uri
sectionHandle
eventTitle
startDateWithTime
ftvaImage {
Expand All @@ -57,8 +58,9 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
title
}
}
pastEvents: entries(section: "ftvaEvent", sectionHandle: "ftvaEventSeries", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: "< now", orderBy: "startDateWithTime ASC") {
pastEvents: entries(section: "ftvaEvent", relatedToEntries: { section: "ftvaEventSeries", slug: $slug }, startDateWithTime: "< now", orderBy: "startDateWithTime ASC") {
uri
sectionHandle
eventTitle
startDateWithTime
ftvaImage {
Expand All @@ -68,8 +70,9 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
title
}
}
otherSeriesOngoing: entries(section: "ftvaEventSeries", sectionHandle: "ftvaEventSeries", limit: 3, ongoing: true) {
otherSeriesOngoing: entries(section: "ftvaEventSeries", limit: 3, ongoing: true) {
uri
sectionHandle
title
startDate
endDate
Expand All @@ -78,8 +81,9 @@ query FTVAEventSeriesDetail ($slug: [String!]) {
...Image
}
}
otherSeriesUpcoming: entries(section: "ftvaEventSeries", sectionHandle: "ftvaEventSeries", limit: 3, endDate: ">=now", orderBy: "startDate ASC") {
otherSeriesUpcoming: entries(section: "ftvaEventSeries", limit: 3, endDate: ">=now", orderBy: "startDate ASC") {
uri
sectionHandle
title
startDate
endDate
Expand Down

0 comments on commit e9c0e57

Please sign in to comment.