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.
Hi guys,i has two collections.First is Country(has property name) and second is Town(has property name,and country).If i wanted to take country name on city my hhtp requst is /appdata/..../Town/id?resolve=country.But how i taked all towns for country with country id ?
Best Answer
P
Pranav J
said
almost 7 years ago
Dimitar,
You can achieve this by implementing onPostFetch() hook for Country collection. In that hook, query the Towns collection for all towns given this country and then insert the resulting json in the output response.
Thanks, Pranav Kinvey Support
1 Comment
P
Pranav J
said
almost 7 years ago
Answer
Dimitar,
You can achieve this by implementing onPostFetch() hook for Country collection. In that hook, query the Towns collection for all towns given this country and then insert the resulting json in the output response.
Dimitar Jechev
Hi guys,i has two collections.First is Country(has property name) and second is Town(has property name,and country).If i wanted to take country name on city my hhtp requst is
/appdata/..../Town/id?resolve=country.But how i taked all towns for country with country id ?
You can achieve this by implementing onPostFetch() hook for Country collection. In that hook, query the Towns collection for all towns given this country and then insert the resulting json in the output response.
Thanks,
Pranav
Kinvey Support
Pranav J
You can achieve this by implementing onPostFetch() hook for Country collection. In that hook, query the Towns collection for all towns given this country and then insert the resulting json in the output response.
Thanks,
Pranav
Kinvey Support
-
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