[go: nahoru, domu]

Skip to content

Commit

Permalink
fix broken array-in snippets (#360)
Browse files Browse the repository at this point in the history
* fix broken array-in snippets

* npm run snippets

* revert array contians anay changes
  • Loading branch information
morganchen12 committed Nov 9, 2023
1 parent d781c67 commit 1f9e797
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firestore-next/test.firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ describe("firestore", () => {
// [START in_filter_with_array]
const { query, where } = require("firebase/firestore");

const q = query(citiesRef, where('regions', 'in', [['west_coast', 'east_coast']]));
const q = query(citiesRef, where('regions', 'in', [['west_coast'], ['east_coast']]));
// [END in_filter_with_array]
}
});
Expand Down
2 changes: 1 addition & 1 deletion firestore/test.firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ describe("firestore", () => {

// [START in_filter_with_array]
citiesRef.where('regions', 'in',
[['west_coast', 'east_coast']]);
[['west_coast'], ['east_coast']]);
// [END in_filter_with_array]
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
// [START in_filter_with_array_modular]
import { query, where } from "firebase/firestore";

const q = query(citiesRef, where('regions', 'in', [['west_coast', 'east_coast']]));
const q = query(citiesRef, where('regions', 'in', [['west_coast'], ['east_coast']]));
// [END in_filter_with_array_modular]

0 comments on commit 1f9e797

Please sign in to comment.