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

Add events to GraphQL endpoint #934

Merged
merged 6 commits into from
Feb 14, 2022
Merged

Add events to GraphQL endpoint #934

merged 6 commits into from
Feb 14, 2022

Conversation

ivankocienski
Copy link
Contributor

@ivankocienski ivankocienski commented Feb 14, 2022

You can now query the API with things like this for event index:

query {
    allEvents {
        id
        summary
        description
    }
}

And this for show event:

query {
    event(id:123) {
        id
        summary
        description
        address {
            streetAddress
            city
            postcode
        }
    }
}

- event and allEvents
- can include the address on an event
Copy link
Member

@kimadactyl kimadactyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I'd like to add in neighbourhood info to the address but we can put that in a future PR

@kimadactyl kimadactyl linked an issue Feb 14, 2022 that may be closed by this pull request
@kimadactyl kimadactyl added enhancement patch Bump version 0.0.X labels Feb 14, 2022
@kimadactyl kimadactyl changed the title Implementing #929 graphql events Add events to GraphQL endpoint Feb 14, 2022
@kimadactyl kimadactyl merged commit 373d0e6 into main Feb 14, 2022
@kimadactyl kimadactyl deleted the ik-929-graphql-events branch February 14, 2022 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Bump version 0.0.X
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create events API endpoint and tests
2 participants