shastajs / boilerplate

Example application built with shasta
MIT License
63 stars 5 forks source link

add ensureIndex to allow r.orderBy({index: created}) #18

Closed stephenlacy closed 8 years ago

stephenlacy commented 8 years ago

this allows returning a sort based on an index Model.orderBy({index: r.desc('created')}

yocontra commented 8 years ago

@stevelacy I don't think this needs to be in the ready callback, does it?

stephenlacy commented 8 years ago

I have only used it in the ready cb, but this probably will need to fire before the relations are set. I'll updated it

stephenlacy commented 8 years ago

Updated