Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix the bug in transforms.md
Browse files Browse the repository at this point in the history
etheral12138 committed Mar 4, 2024
1 parent 4e945e8 commit affd1d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/advanced-options/transforms.md
Original file line number Diff line number Diff line change
@@ -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()
]
};

0 comments on commit affd1d8

Please sign in to comment.