Skip to content

GraphQL query for future events does not work #42

Discussion options

You must be logged in to vote

Glad to hear @denisyilmaz

If you want to query events based on their dates, there are filtering functions available.
I just noticed that the docs don't have the GQL examples released yet, I'll post them here once they are.

A small example how to filter in your case:

{
  solspace_calendar {
    events (rangeStart: "now") {
      id
      title
      startDate
    }
  }
}

The startsAfter filter is for filtering base events, not the occurrences.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kjmartens
Comment options

Answer selected by kjmartens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #41 on May 28, 2021 14:21.