From 40cf1c3d6e4eda7a226684a60ffc736beee33adf Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 12 Jan 2021 22:47:47 +1000 Subject: [PATCH] Fix readme sections --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ce83f0..7289f49 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ console.log( { ### Examples
1. Get item by id + ```javascript client.get('tests', { query: { @@ -69,6 +70,7 @@ client.get('tests', {
2. Get document count in a collection + ```javascript client.count('tests', { query: { @@ -80,7 +82,7 @@ client.count('tests', {
3. Get items in a collection -**Client:** + ```javascript client.get('tests', { query: { @@ -94,6 +96,7 @@ client.get('tests', {
4. Create a new document in a collection + ```javascript client.post('tests', { firstName: 'Joe' @@ -103,6 +106,7 @@ client.post('tests', {
5. Replace a document by id + ```javascript client.put('tests', { firstName: 'Joe' @@ -112,6 +116,7 @@ client.put('tests', {
6. Replace multiple documents by query + ```javascript client.put('tests', { firstName: 'Zoe', @@ -127,6 +132,7 @@ client.put('tests', {
7. Partially update multiple documents by id + ```javascript client.patch('tests', { timezone: 'GMT' @@ -140,6 +146,7 @@ client.patch('tests', {
8. Partially update multiple documents by query + ```javascript client.patch('tests', { timezone: 'GMT' @@ -153,6 +160,7 @@ client.patch('tests', {
9. Delete a document by id + ```javascript client.delete('tests', { query: { @@ -165,6 +173,7 @@ client.delete('tests', {
10. Delete multiple documents by query + ```javascript client.delete('tests', { query: { @@ -176,6 +185,7 @@ client.delete('tests', {
11. Lock a collection/document/field combination + ```javascript const lockId = await client.lock('users'); ``` @@ -183,6 +193,7 @@ const lockId = await client.lock('users');
12. Release a lock + ```javascript const lockId = await client.lock(['users']); const newDocument = await client.post('users', {