Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Graphql] availableCapacity and capacity return Getting unknown property: verbb\\events\\elements\\Session::capacity #184

Open
stephanedemotte opened this issue Feb 19, 2025 · 1 comment

Comments

@stephanedemotte
Copy link

stephanedemotte commented Feb 19, 2025

Describe the bug

Hello ! i run this query on Graphql and boom errors, this seem to be only on availableCapacity and capacity, no probs with all other fields, thanks !

{
  eventsEvents {
    sessions {
      capacity
      availableCapacity
    }
  }
}

Steps to reproduce

Run the query

Craft CMS version

5.6.6

Plugin version

dev-craft-5

Multi-site?

Yes

Additional context

No response

@engram-design
Copy link
Member

Ah, looks like there's still a reference to those properties from Events 2, these now no longer exist on the session. Instead, on the ticketTypes, and availableCapacity no longer exists.

{
  eventsEvents {
    ticketTypes {
      capacity
    }
  }
}

Fixed for the next release. To get this early, run composer require verbb/events:"dev-craft-5 as 3.0.5".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants