Skip to content

Commit 6226063

Browse files
author
Aschen
committed
doc(col:update): fix example
1 parent 9264f8b commit 6226063

File tree

1 file changed

+2
-2
lines changed
  • doc/7/controllers/collection/update/snippets

1 file changed

+2
-2
lines changed

doc/7/controllers/collection/update/snippets/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const mapping = {
1+
const mappings = {
22
dynamic: 'false',
33
_meta: {
44
area: 'Panipokhari'
@@ -9,7 +9,7 @@ const mapping = {
99
};
1010

1111
try {
12-
await kuzzle.collection.update('nyc-open-data', 'yellow-taxi', mapping);
12+
await kuzzle.collection.update('nyc-open-data', 'yellow-taxi', { mappings });
1313

1414
console.log('Success');
1515
} catch (error) {

0 commit comments

Comments
 (0)