As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I have an API that gets a data from a collection. What I want to do is pass a string parameter and get all data that contains this string.
For Example:
When hitting this API URL:
https://baas.kinvey.com/appdata/XXXXX/WorldCities?query={"name":"am"}
Will get all results that the field name has "am" characters, Ie: "America","Amsterdam",...etc
Hi Mohamed,
You may use a $regex query for that.
$regex
There is a limitation to anchor all query conditions (they must start with ^). So to execute a 'contains' query, you may use the following:
?query={"name":{"$regex":"^.*yourString.*"}}
Please note that there is also a limitation that the regext cannot be case-insensitive.
Regards
Martin
That's it. Thanks so much dear Martinn.
Would you please share with me where is it on the documentation as It does not exist here
https://devcenter.kinvey.com/rest/guides/getting-started
and sorry another question, is it a javascript regex?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
Thanks so much
mohamed osama
I have an API that gets a data from a collection. What I want to do is pass a string parameter and get all data that contains this string.
For Example:
When hitting this API URL:
https://baas.kinvey.com/appdata/XXXXX/WorldCities?query={"name":"am"}
Will get all results that the field name has "am" characters, Ie: "America","Amsterdam",...etc
Hi Mohamed,
You may use a
$regex
query for that.There is a limitation to anchor all query conditions (they must start with ^). So to execute a 'contains' query, you may use the following:
Please note that there is also a limitation that the regext cannot be case-insensitive.
Regards
Martin
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstMartin Apostolov
Hi Mohamed,
You may use a
$regex
query for that.There is a limitation to anchor all query conditions (they must start with ^). So to execute a 'contains' query, you may use the following:
Please note that there is also a limitation that the regext cannot be case-insensitive.
Regards
Martin
1 person likes this
mohamed osama
That's it. Thanks so much dear Martinn.
Would you please share with me where is it on the documentation as It does not exist here
https://devcenter.kinvey.com/rest/guides/getting-started
and sorry another question, is it a javascript regex?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
Thanks so much
-
Why am I getting "SignatureDoesNotMatch" error when uploading a file?
-
Why am I getting an "IncompleteRequestBody" error when sending a DELETE request?
-
Is there a default sort order to collections fetched without an explicit sort query?
-
Is it possible to set ACLs on all users so that only administrators can query for users (without dis
-
Flex SDK
-
Query Bug in Backend?
-
Can analytics data be retrieved via Java SDK or REST?
-
Accesing REST API from a server without a user?
-
What json is required to assign a user group either read/write?
-
LDAP Authorization
See all 120 topics