Lists upcoming GraphQL Meetups using OneGraph's Meetup integration and persisted queries.
View the demo.
Install dependencies
yarn install
Start the demo
yarn start
-
Create a new app on OneGraph
-
Replace the
APP_ID
insrc/index.js
with your app's id. -
Go to the "Server-Side Auth" tab on the OneGraph dashboard and create a new token with your Meetup credentials.
-
Go to the "Persisted Queries" tab on the OneGraph dashboard, scroll down to the bottom and create a persisted query with the token you just created and the following query
query MeetupEvents { meetup { makeRestCall { get( path: "/find/upcoming_events" query: [ ["radius", "global"], ["text", "graphql"], ["order", "time"] ] ) { jsonBody } } } }
-
Replace
QUERY_ID
insrc/index.js
with the doc_id for the query you just created.
Once you've done that, you can create new persisted queries that get events for different meetup groups or even create a list of events that you're planning to go to.
Hop in to our Spectrum chat if you have any questions or suggestions.