http://sequelizejs.com/docs/latest/models#finders-complex-where-queries


On Tue, Feb 25, 2014 at 4:01 PM, Brenn Hill <[email protected]> wrote:

> Hi all I'm new to node and sequelize and i'm having the hardest problem
> finding the answer to what should be really easy.
>
> MyModel.findAll({where:{id: idVar, startLvl:"<"+num,
> endLvl:">"+num}}).complete(function(err, targets) {
> ...
> }
>
> Obviously this doesn't work.  I want to select a row or rows where the
> start and end levels are within a certain range.  I can't find anything at
> all on this topic.  Any help greatly appreciated.
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to