@frenchbaas/js 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,9 @@ const col = client.collection('collection-uuid')
|
|
|
44
44
|
// Lire (paginé)
|
|
45
45
|
const { data, meta } = await col.get({ page: 1, perPage: 20 })
|
|
46
46
|
|
|
47
|
+
// Récupérer un document par son ID
|
|
48
|
+
const doc = await col.getById('doc-id')
|
|
49
|
+
|
|
47
50
|
// Créer
|
|
48
51
|
const doc = await col.create({ title: 'Hello', published: true })
|
|
49
52
|
|