Page 1 of 2
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 8:10 pm
by jeremy Henry
Hi,
I am calling the appery db query service at several locations. for 1 call, I want to retrieve all distinct value of a column to insert it in a list. I managed to do it. however, now this also applies to all other queries that I am performing, and I would like to avoid that.
I was thinking to duplicate the database service, but it is not allowed.
here is the URL i used to retrieve distinct values.
{database_url}/collections/activity/distinct/Activity
thank you for your help
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 8:33 pm
by Maryna Brodina
Hello! There is no way to duplicate service, you need to create it manually.
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 8:37 pm
by jeremy Henry
is it the only to solve my problem? to create manually a dupe of the service and add the "DISTINCT"?
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 8:48 pm
by Maryna Brodina
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 8:53 pm
by jeremy Henry
ok... is it planned for a next release? this seems quite ennoying to have to that manually. It means that then i can't do anything without having to update the code manually?
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 9:00 pm
by Maryna Brodina
Sorry, I'm not aware if this is a planned feature, but I can check and someone will get back to this post with update.
Distinct query using appery DB service
Posted: Wed Jul 24, 2013 11:24 pm
by Alena Prykhodko
Hello Jeremy! Yes, it is planned.
Distinct query using appery DB service
Posted: Thu Jul 25, 2013 11:49 am
by jeremy Henry
ok, thanks. do you know when this is planned?
2nd question: if you know any other way to solve my problem, other than duplicating the service, that would be perfect for me.
thank you,
Distinct query using appery DB service
Posted: Thu Jul 25, 2013 3:19 pm
by maxkatz
Late September time frame.
An alternative is to use a plug-in and import it when needed.
Distinct query using appery DB service
Posted: Fri Jul 26, 2013 11:02 am
by jeremy Henry
Hi Max,
What do you mean by importing a plug-in? using different Database such as MongoLab?
thank you,