Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json
yarn.lock

README.md

GraphQL Apollo Example

Setup

yarn install

Develop

yarn start
# then visit http://localhost:4000

Queries to Try

query getNestedRelationships {
  organization(id: "123") {
    name
    users {
      name
      organization {
        name
      }
    }
  }
}

# Set authorization header first
# { "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImFiYyIsImlhdCI6MTUzMjQ1NDE4MH0.U2IXOLpKqcPLCtzIasl_U8cK_I5tDMAW_CPN5szzhwA" }
query getRestrictedDadJoke {
  tellMeADadJoke
}

mutation signup {
  signup(organization: "123", id: "newUserId", name: "Tyler Buchea") {
    name
  }
}

query login {
  login(username: "Elon Musk")
}
You can’t perform that action at this time.