solspace / craft-calendar

Calendar for Craft: The most reliable and powerful event management plugin for Craft.
http://docs.solspace.com/craft/calendar/v5
Other
15 stars 16 forks source link

How to fetch the events that is related to specific categories with GQL . #288

Closed Brijeshgrg1999 closed 3 months ago

Brijeshgrg1999 commented 6 months ago

Describe the bug or issue you're experiencing I am trying to fetch the event's data using graph ql since i am using calendar plugin but I want to fetch the events that is related to some of the categories for the events

Steps to reproduce

  1. These are my categories setuped
Screenshot 2024-05-20 at 12 38 38 PM
  1. This is how i have added categories in the event entry ( in the Event Category)
Screenshot 2024-05-20 at 12 40 18 PM

3 . This is how i am trying to fetch using this query

Screenshot 2024-05-20 at 12 40 55 PM

can someone help me how can i fetch the events that are related to only some of the categories . let's say if I want to fetch the events that is related to " Cocktails & WineTasting " , how would I do it ? Thank you

Craft & Plugin Info (please complete the following information):