Issuing queries
Campsites
Use the campsites connection to get any campsites the user has access to:
query campsites { campsites { edges { node { id label } } }}You will receive a response similar to the following:
{ "data": { "campsites": { "edges": [ { "node": { "id": "Q2FtcHNpdGU6ZjFkNTEwNTktNzM1MS00NzJmLTg4NDAtMDFmOTc2NjhiZjI5", "label": "First Campsite" } } ] } }}User Information
You can obtain profile information about the current user with the currentUser query:
query myUser { currentUser { id email firstName }}You will receive a response similar to the following:
{ "data": { "currentUser": { "id": "VXNlclR5cGU6MQ==", "firstName": "Jane", "lastName": "Doe", "email": "user@example.com" } }}Further examples relating to device types and status queries follow in the following chapters.