Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support select #6

Open
roboojack opened this issue May 7, 2015 · 9 comments
Open

support select #6

roboojack opened this issue May 7, 2015 · 9 comments

Comments

@roboojack
Copy link

Hi, would it be difficult to implement select functionality?

@jhawlwut
Copy link

jhawlwut commented May 8, 2015

+1

@rosmo
Copy link
Collaborator

rosmo commented May 8, 2015

@jhawlwut
Copy link

jhawlwut commented May 8, 2015

Yes, that's it

I was able to build an options.select function;however, I'm having trouble
getting it to transform into the AQL structure for 'RETURN'

It builds into something like {value: d.name}

On Friday, May 8, 2015, Taneli Leppä [email protected] wrote:

You mean this: balderdashy/waterline#73
https://github.com/balderdashy/waterline/issues/73 ?


Reply to this email directly or view it on GitHub
#6 (comment).

Sent from my iPhone

@roboojack
Copy link
Author

Yes, but send the RETURN [x.attribute1, x.attribute2, x.attribute3] part of the AQL to ArangoDB so that we don't have to filter the JSON that's returned. It's a query optimization, but it would be a nice feature.

@rosmo
Copy link
Collaborator

rosmo commented May 20, 2015

Can you guys give me an example how you'd like this to work? I'm using Model.query mostly for my queries (since most of my queries are GRAPH_NEIGHBORS lookups) and those have to specified completely manually.

@rosmo
Copy link
Collaborator

rosmo commented May 23, 2015

Can you try this branch: https://github.com/rosmo/sails-arangodb/tree/select-support

It (at least tries to) implements Model.find({ where : { ... }, select: [ 'field1', field2', ...] }) support.

@gabriel-letarte
Copy link
Owner

I will work on getting this feature into master.

@gbevan
Copy link
Contributor

gbevan commented Nov 19, 2016

Is it still planned for where and select support to be merged/supported?
I'm using waterline from feathersjs - would be very nice to be able to select fields etc

@gbevan
Copy link
Contributor

gbevan commented Apr 12, 2017

This pull request (in progress) implements select support - #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants