bmuller/twistar

Unique and only specified fields in .find()

Closed this issue · 2 comments

How can I get only specified fields in .find() method? Can I get only unique rows?

You cannot specify the fields you want in find. What is returned is an object containing properties for all of the fields. Since twistar is an ORM, every row should be unique (because each row will have either a unique ID or it will be a join table with unique combos of IDs).

I'm happy to answer any other questions you have - feel free to email me at the address listed on my profile page.

@bmuller
I mean how to do "SELECT DISTINCT(column) ..."