diff --git a/docs/04_examples/99_labs.md b/docs/04_examples/99_labs.md index a59bf3c..82fc259 100644 --- a/docs/04_examples/99_labs.md +++ b/docs/04_examples/99_labs.md @@ -31,24 +31,17 @@ const notesLab = new Lab() return notes.get(id); }, ["notes"], - ) - .procedure( - "notes.list", - (_, { notes }) => { - return Array.from(notes.values()); - }, - ["notes"], ); -notesLab.execute( +const noteID = notesLab.execute( "notes.add", { title: "Hello", content: "World" }, ); -const notes = notesLab.execute( - "notes.list", - {}, +const note = notesLab.execute( + "notes.get", + { id: noteID.id }, ); -console.log(notes); +console.log(note); // { title: "Hello", content: "World" } ```