@supabase/postgrest-js
Advanced tools
Comparing version 0.24.5 to 0.25.0
@@ -16,4 +16,7 @@ import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
* @param filters The filters to use, separated by commas. | ||
* @param foreignTable The foreign table to use (if `column` is a foreign column). | ||
*/ | ||
or(filters: string): this; | ||
or(filters: string, { foreignTable }?: { | ||
foreignTable?: string; | ||
}): this; | ||
/** | ||
@@ -20,0 +23,0 @@ * Finds all rows whose value on the stated `column` exactly matches the |
@@ -27,5 +27,7 @@ "use strict"; | ||
* @param filters The filters to use, separated by commas. | ||
* @param foreignTable The foreign table to use (if `column` is a foreign column). | ||
*/ | ||
or(filters) { | ||
this.url.searchParams.append('or', `(${filters})`); | ||
or(filters, { foreignTable } = {}) { | ||
const key = typeof foreignTable === 'undefined' ? 'or' : `${foreignTable}.or`; | ||
this.url.searchParams.append(key, `(${filters})`); | ||
return this; | ||
@@ -32,0 +34,0 @@ } |
@@ -16,4 +16,7 @@ import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
* @param filters The filters to use, separated by commas. | ||
* @param foreignTable The foreign table to use (if `column` is a foreign column). | ||
*/ | ||
or(filters: string): this; | ||
or(filters: string, { foreignTable }?: { | ||
foreignTable?: string; | ||
}): this; | ||
/** | ||
@@ -20,0 +23,0 @@ * Finds all rows whose value on the stated `column` exactly matches the |
@@ -22,5 +22,7 @@ import PostgrestTransformBuilder from './PostgrestTransformBuilder'; | ||
* @param filters The filters to use, separated by commas. | ||
* @param foreignTable The foreign table to use (if `column` is a foreign column). | ||
*/ | ||
or(filters) { | ||
this.url.searchParams.append('or', `(${filters})`); | ||
or(filters, { foreignTable } = {}) { | ||
const key = typeof foreignTable === 'undefined' ? 'or' : `${foreignTable}.or`; | ||
this.url.searchParams.append(key, `(${filters})`); | ||
return this; | ||
@@ -27,0 +29,0 @@ } |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.24.5", | ||
"version": "0.25.0", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135823
2233