Public
Edited
Sep 13, 2023
Insert cell
Insert cell
Insert cell
wasteInstructionsVisalia
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
gqlPayload = wasteInstructionsVisalia.map(({name, category, generic_notes, special_notes}) => {
const fullName = `${name} (${category})`
const instruction = `${generic_notes} ${special_notes}`
return {
name: fullName,
location: {
location_id: {id: 10},
instruction
}
}
})
Insert cell
Inputs.button("Copy to clipboard", {
value: null,
reduce: () =>
navigator.clipboard.writeText(JSON.stringify(gqlPayload)),
});
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more