@everystack/api 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client/index.ts +4 -1
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -340,8 +340,11 @@ function buildUrl(
|
|
|
340
340
|
const base = typeof globalThis.location !== 'undefined' ? globalThis.location.origin : undefined;
|
|
341
341
|
const url = new URL(path, base);
|
|
342
342
|
|
|
343
|
+
// append, not set: PostgREST ANDs repeated column params, so multiple
|
|
344
|
+
// conditions on one column (e.g. a range: created_at=gte.X & created_at=lte.Y)
|
|
345
|
+
// must both survive.
|
|
343
346
|
for (const [key, value] of filters) {
|
|
344
|
-
url.searchParams.
|
|
347
|
+
url.searchParams.append(key, value);
|
|
345
348
|
}
|
|
346
349
|
if (select) url.searchParams.set('select', select);
|
|
347
350
|
if (order) url.searchParams.set('order', order);
|