Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.39 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.39 KB

Meetup Plugin

Lists upcoming GraphQL Meetups using OneGraph's Meetup integration and persisted queries.

View the demo.

Developing

Install dependencies

yarn install

Start the demo

yarn start
  1. Create a new app on OneGraph

  2. Replace the APP_ID in src/index.js with your app's id.

  3. Go to the "Server-Side Auth" tab on the OneGraph dashboard and create a new token with your Meetup credentials.

  4. 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
          }
        }
      }
    }
  5. Replace QUERY_ID in src/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.