Commit 08b9a5e
committed
Support direct params format in fetchCollection
Allow both calling styles for fetchCollection:
- col('tasks', { params: { status: 'active' } }) // explicit params key
- col('tasks', { status: 'active' }) // direct params format
When opts.params is undefined but opts has keys other than 'force' and 'params',
the opts object (minus force) is treated as params directly.
This provides a more intuitive API while maintaining backward compatibility.1 parent 500e253 commit 08b9a5e
File tree
1 file changed
+22
-2
lines changed1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
1723 | | - | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1724 | 1744 | | |
1725 | 1745 | | |
1726 | | - | |
| 1746 | + | |
1727 | 1747 | | |
1728 | 1748 | | |
1729 | 1749 | | |
| |||
0 commit comments