Count upcoming events on preview card

  • Solved
  • Posted 1 month ago

Hello,

I am attempting to show the number of upcoming events at a place on the place preview card. Like:

“[n] upcoming events.”

I made a place-event relation field and tried this on the preview card.

@post(post-relation.id).count() upcoming events

But that counts expired events too.

Can you suggest a way to show the number of upcoming events?