Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions handwritten/firestore/dev/system-test/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2072,6 +2072,34 @@ describe.skipClassic('Pipeline class', () => {
);
});

it('run pipeline with user data with union', async () => {
const snapshot = await firestore
.pipeline()
.collection(randomCol.path)
.union(
firestore
.pipeline()
.collection(randomCol.path)
.where(equal('title', "The Hitchhiker's Guide to the Galaxy")),
)
.sort(field(FieldPath.documentId()).ascending())
.execute();
expectResults(
snapshot,
'book1',
'book1',
'book10',
'book2',
'book3',
'book4',
'book5',
'book6',
'book7',
'book8',
'book9',
);
});

it('supports options', async () => {
const snapshot = await firestore
.pipeline()
Expand Down
Loading