Basic Queries: Open Pet Library API to test or use the link in Postman.
Return a single field.
query {
Return a single field.
query {
const tahoeTravelMachine = Machine({ | |
id: "tahoe-travel", | |
initial: "walking", | |
states: { | |
walking: { | |
on: { | |
THUMBS_UP: "hitchhiking", | |
ARRIVED: "arrived" | |
} | |
}, |
const tahoeTravelMachine = Machine({ | |
id: "tahoe-travel", | |
initial: "walking", | |
states: { | |
walking: { | |
on: { | |
THUMBS_UP: "hitchhiking", | |
ARRIVED: "arrived" | |
} | |
}, |
const menuMachine = Machine({ | |
id: 'menu', | |
initial: 'collapsed', | |
states: { | |
expanded: { | |
on: { | |
COLLAPSE: 'collapsed' | |
} | |
}, | |
collapsed: { |
const cocktailMachine = Machine({ | |
id: 'cocktail', | |
initial: 'empty', | |
context: { | |
ingredients: [] | |
}, | |
states: { | |
empty: { | |
on: { | |
FIRST_INGREDIENT: { |
const fetchMachine = Machine({ | |
id: 'fetch', | |
initial: 'idle', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
idle: { | |
on: { | |
FETCH: 'loading' |
const tahoeTravelMachine = Machine({ | |
id: "ML-to-Live", | |
initial: "analysis", | |
states: { | |
analysis: { | |
on: { | |
COMPLETE: "data" | |
} | |
}, | |
data: { |
query { | |
allLifts { | |
id | |
name | |
} | |
} |
{ | |
"zenMode.hideLineNumbers": false, | |
"workbench.colorTheme": "Night Owl", | |
"editor.quickSuggestions": { | |
"other": false, | |
"comments": false, | |
"strings": false | |
}, | |
"editor.wordBasedSuggestions": false, | |
"editor.suggestOnTriggerCharacters": false, |