Skip to content

Instantly share code, notes, and snippets.

View machine.js
const dismissMachine = Machine(
{
id: 'dismissMachine',
initial: 'load',
context: {
resolutions: [],
selectedRisksCount: 1,
resolutionId: undefined,
reason: undefined,
},
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@jjenzz
jjenzz / schema.js
Last active Jun 23, 2018
I can't seem to figure out where I'm going wrong here. Querying `stats` returns `null` and the resolvers aren't called. Whyyyy? 🙈https://launchpad.graphql.com/w5q78w4zrz
View schema.js
const typeDefs = `
schema {
query: Query
}
type Query {
stats: Stats
}
type Stats {