the-events-calendar / ql-events

The Events Calendar binding to WPGraphQL
15 stars 7 forks source link

[Feature Request] Add connected event to RSVP/Tickets and Attendees #24

Open justlevine opened 3 years ago

justlevine commented 3 years ago

Trying to replicate the Who's Attending block, as well as display the associated event on a user's ticket, but it seems that information isnt part of the various ticket nodes. E.g.

events { 
    nodes { 
        wooAttendees # or any other attendee type.
     }
 }
 wooAttendees (where: eventIn: "list of events"){}
 products {
     nodes {
        ... on SimpleProduct {
            event
        }
    }
}

Happy to try it myself and submit a PR, but I'm not entirely sure where in the docs (or the plugin) these sorts of connections are covered. A push in the right direction would be really appreciated!

dingo-d commented 3 years ago

Will this feature make it possible to connect event ticket attendees (PayPal and rsvp) to events? Because atm I don't see a way this can be done 🤷🏼‍♂️

justlevine commented 3 years ago

@dingo-d that's exactly my use case. I have a better understanding of WPGraphQL now, so next time my schedule frees up I might take a gander at a PR 🤞