Skip to content

Commit d9b5f81

Browse files
committed
regenerate
1 parent c50fc10 commit d9b5f81

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5-
"version": "0.23.1",
5+
"version": "0.24.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Client {
153153
'x-sdk-name': 'React Native',
154154
'x-sdk-platform': 'client',
155155
'x-sdk-language': 'reactnative',
156-
'x-sdk-version': '0.23.1',
156+
'x-sdk-version': '0.24.0',
157157
'X-Appwrite-Response-Format': '1.8.0',
158158
};
159159

src/query.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,40 @@ export class Query {
126126

127127
/**
128128
* Filter resources where attribute contains the specified value.
129+
* For string attributes, checks if the string contains the substring.
129130
*
131+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
130132
* @param {string} attribute
131133
* @param {string | string[]} value
132134
* @returns {string}
133135
*/
134136
static contains = (attribute: string, value: string | any[]): string =>
135137
new Query("contains", attribute, value).toString();
136138

139+
/**
140+
* Filter resources where attribute contains ANY of the specified values.
141+
* For array and relationship attributes, matches documents where the attribute
142+
* contains at least one of the given values.
143+
*
144+
* @param {string} attribute
145+
* @param {any[]} value
146+
* @returns {string}
147+
*/
148+
static containsAny = (attribute: string, value: any[]): string =>
149+
new Query("containsAny", attribute, value).toString();
150+
151+
/**
152+
* Filter resources where attribute contains ALL of the specified values.
153+
* For array and relationship attributes, matches documents where the attribute
154+
* contains every one of the given values.
155+
*
156+
* @param {string} attribute
157+
* @param {any[]} value
158+
* @returns {string}
159+
*/
160+
static containsAll = (attribute: string, value: any[]): string =>
161+
new Query("containsAll", attribute, value).toString();
162+
137163
/**
138164
* Filter resources where attribute does not contain the specified value.
139165
*

0 commit comments

Comments
 (0)