Skip to content

Commit

Permalink
fix: fix incorrect docs about transformers actions
Browse files Browse the repository at this point in the history
* fix: fix the bug in transforms.md

* fix:fix the bug in packages/transforms/README.md
  • Loading branch information
etheral12138 authored Mar 8, 2024
1 parent 4e945e8 commit 150cef3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/advanced-options/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
};
Expand All @@ -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()
]
};
Expand Down Expand Up @@ -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()
]
};
Expand All @@ -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()
]
};
Expand All @@ -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()
]
};
Expand Down
2 changes: 1 addition & 1 deletion packages/transforms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]
};
Expand Down

0 comments on commit 150cef3

Please sign in to comment.