bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

I only want to return certain fields from a REST query. Is there a SELECT command/parameter like in SQL, to limit the fields/columns that are returned.

Thanks in advance.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a SELECT command in REST like in SQL ?

There is no option right now to return only specific columns when using Appery.io database. You can invoke the service in Server Code and then filter and only return the data that you need to the client.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

How do I do that?

Can you provide me with an example.

Thanks

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

Thank you this was very helpful. Works like a charm!

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

Thank you this was very helpful. Works like a charm!

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

I believe Appery use Mongodb. Correct?

I found the following in their reference documents. The "Projection" parameter allows selection of fields, like SELECT in SQL. This eliminates the need for me to run server side scripts to emulate SELECT like behavior, to strip data server side, to reduce payload and speed up the app/process.

http://docs.mongodb.org/manual/refere...

1) Can you please confirm Appery support this?

2) How would I implement this in Appery?

Thank you.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a SELECT command in REST like in SQL ?

No support for this yet.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Is there a SELECT command in REST like in SQL ?

This would be very valuable. Any idea how soon this could be made available?

Can we make a community request to raise the level of importance?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a SELECT command in REST like in SQL ?

I already added it to our todo list. You can also create an Idea topic, other users can vote/comment on it.

Return to “Issues”