From fbc7e8fd456c6dd012916019dc67936793e9e352 Mon Sep 17 00:00:00 2001 From: SondreB Date: Tue, 24 Sep 2024 12:57:54 +0200 Subject: [PATCH] Fix a minor typo in the subscribe example - There are no option to have a handler on the query. --- packages/api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/README.md b/packages/api/README.md index d94157399..f047711b8 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -256,8 +256,8 @@ const { status } = await web5.dwn.records.subscribe({ console.log(status.code === 200); // successful subscription -// This invocation will query Bob's DWeb Nodes -const { status } = await web5.dwn.records.query({ +// This invocation will subscribe to Bob's DWeb Nodes +const { status } = await web5.dwn.records.subscribe({ from: "did:example:bob", message: { filter: {