diff --git a/docs/advanced-options/transforms.md b/docs/advanced-options/transforms.md index 804f959..ea8bf3a 100644 --- a/docs/advanced-options/transforms.md +++ b/docs/advanced-options/transforms.md @@ -285,7 +285,7 @@ try { const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] }; @@ -307,7 +307,7 @@ import { addCounter } from './custom-transforms'; const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] }; @@ -336,7 +336,7 @@ const output = createWriteStream(outputPath, { encoding: 'utf8' }); const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] }; @@ -360,7 +360,7 @@ import { addCounter } from './custom-transforms'; const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] }; @@ -379,7 +379,7 @@ import { addCounter } from './custom-transforms'; const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] }; diff --git a/packages/transforms/README.md b/packages/transforms/README.md index 5dea7c3..6db9f25 100644 --- a/packages/transforms/README.md +++ b/packages/transforms/README.md @@ -149,7 +149,7 @@ try { const opts = { transforms: [ unwind({ paths: ['fieldToUnwind','fieldToUnwind.subfieldToUnwind'], blankOut: true }), - flatten({ object: true, array: true, separator: '_'}), + flatten({ objects: true, arrays: true, separator: '_'}), addCounter() ] };