switch v := ev.(type) {
    case api.EventCreateNode:
        a.store.View(func(tx store.ReadTx) {
            node = store.GetNode(tx, v.Node.ID)
        })