From 5337969664bcf9d7d12ed67d544d599810eb69eb Mon Sep 17 00:00:00 2001 From: Curran Kelleher <68416+curran@users.noreply.github.com> Date: Thu, 17 Mar 2022 11:57:45 -0400 Subject: [PATCH] Fix typos in query docs --- docs/queries.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/queries.md b/docs/queries.md index 8a8163b9..930ef43b 100644 --- a/docs/queries.md +++ b/docs/queries.md @@ -32,7 +32,7 @@ See the [API documentation]({{ site.baseurl }}{% link api/connection.md %}#creat [`Query`]({{ site.baseurl }}{% link api/query.md %}) instance, which can be used instead: ```js -const query = connection.createFetchQuery('my-connection', {userId: 1}) +const query = connection.createFetchQuery('my-collection', {userId: 1}) query.on('ready', () => { // results are now available in query.results }) @@ -48,7 +48,7 @@ A subscribed query will automatically cause any matched `Doc` instances to recei Subscribe queries can be created similarly to fetch queries, but you may also be interested in [other events]({{ site.baseurl }}{% link api/query.md %}#events): ```js -const query = connection.createSubscribeQuery('my-connection', {userId: 1}) +const query = connection.createSubscribeQuery('my-collection', {userId: 1}) query.on('ready', () => { // The initial results are available in query.results }) @@ -73,7 +73,7 @@ If a query can potentially return a large number of results, you may want to con For example, a `sharedb-mongo` limit might look like this: ```js -const query = connection.createSubscribeQuery('my-connection', {userId: 1, $skip: 10, $limit: 10}) +const query = connection.createSubscribeQuery('my-collection', {userId: 1, $skip: 10, $limit: 10}) ``` {: .info }