react-native-appwrite 0.23.1 → 0.24.0

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/dist/esm/sdk.js CHANGED
@@ -109,7 +109,7 @@ class Client {
109
109
  'x-sdk-name': 'React Native',
110
110
  'x-sdk-platform': 'client',
111
111
  'x-sdk-language': 'reactnative',
112
- 'x-sdk-version': '0.23.1',
112
+ 'x-sdk-version': '0.24.0',
113
113
  'X-Appwrite-Response-Format': '1.8.0',
114
114
  };
115
115
  this.realtime = {
@@ -4994,12 +4994,34 @@ Query.limit = (limit) => new Query("limit", undefined, limit).toString();
4994
4994
  Query.offset = (offset) => new Query("offset", undefined, offset).toString();
4995
4995
  /**
4996
4996
  * Filter resources where attribute contains the specified value.
4997
+ * For string attributes, checks if the string contains the substring.
4997
4998
  *
4999
+ * Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
4998
5000
  * @param {string} attribute
4999
5001
  * @param {string | string[]} value
5000
5002
  * @returns {string}
5001
5003
  */
5002
5004
  Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
5005
+ /**
5006
+ * Filter resources where attribute contains ANY of the specified values.
5007
+ * For array and relationship attributes, matches documents where the attribute
5008
+ * contains at least one of the given values.
5009
+ *
5010
+ * @param {string} attribute
5011
+ * @param {any[]} value
5012
+ * @returns {string}
5013
+ */
5014
+ Query.containsAny = (attribute, value) => new Query("containsAny", attribute, value).toString();
5015
+ /**
5016
+ * Filter resources where attribute contains ALL of the specified values.
5017
+ * For array and relationship attributes, matches documents where the attribute
5018
+ * contains every one of the given values.
5019
+ *
5020
+ * @param {string} attribute
5021
+ * @param {any[]} value
5022
+ * @returns {string}
5023
+ */
5024
+ Query.containsAll = (attribute, value) => new Query("containsAll", attribute, value).toString();
5003
5025
  /**
5004
5026
  * Filter resources where attribute does not contain the specified value.
5005
5027
  *