From 150cef340f52e1b6eef9f3ded1d9bbd2b32f2a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=82=E8=92=82=E7=9A=84=E4=B8=98=E4=B8=98=E4=BA=BA?= <109936669+etheral12138@users.noreply.github.com> Date: Fri, 8 Mar 2024 19:24:41 +0800 Subject: [PATCH] fix: fix incorrect docs about transformers actions * fix: fix the bug in transforms.md * fix:fix the bug in packages/transforms/README.md --- docs/advanced-options/transforms.md | 10 +++++----- packages/transforms/README.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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() ] };