the-events-calendar/ql-events

Can't fetch old events

Opened this issue · 5 comments

I don't know if I'm missing something but I can't find a way to fetch the past event, but only the future events of the date of fetching

same. 👆🏼

FEATURE REQUEST

Hi @kidunot89,

When we made this originally, we only allowed queries going forward in time. It makes sense to be able to query older events, as well.

A query could take this shape to be sufficient:

query MyQuery {
  events(where: {startDateQuery: {after: {day: 29, month: 6, year: 2022}}, endDateQuery: {before: {day: 10, month: 8, year: 2022}}}) {
    nodes {
      title
      startDate
    }
  }
}

All fields should be available on the older events, including tickets.

I don't believe we made a limitation on getting tickets that were from events in the past, but let's make sure we can have those as well.

Thanks,
Craig

yes pelase.

up 👆

eju1 commented

Is there a work around to this? Even if events are in the past its not good practice for them to simply disappear from the site.