MySQL Forums
Forum List  »  Connector/Node.js

cannot find a way to sort a collection
Posted by: Nicolas Moreau
Date: March 23, 2018 08:09AM

Hi,

I am trying to use nodejs connector for mysql for a project, but i cannot find a way to sort a collection nor the complete documentation about find on the official documentation. There is an orderBy when working with relational tables. I only see an Order class but without a single example. In MongoDb there is a sort method like this : "find().sort()", (i am starting with nodejs and i am using express too).
Do you have any idea or something about this ?

Best regards,
Nicolas Moreau

Options: ReplyQuote


Subject
Written By
Posted
cannot find a way to sort a collection
March 23, 2018 08:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.