new FlowDiagram({
title: 'findAll()',
direction: 'horizontal',
nodes: [
{ id: 'call', label: 'findAll(options)' },
{ id: 'assoc', label: 'resolve includes' },
{ id: 'build', label: 'dialect builds SQL' },
{ id: 'run', label: 'driver executes' },
{ id: 'cast', label: 'coerce values' },
{ id: 'out', label: 'model instances' },
],
edges: [
{ from: 'call', to: 'assoc' }, { from: 'assoc', to: 'build' },
{ from: 'build', to: 'run' }, { from: 'run', to: 'cast' },
{ from: 'cast', to: 'out' },
],
}).generate()