Sequelize with NodeJS can't join tables with limit

前端 未结 3 1560
南笙
南笙 2021-01-08 01:00

I\'m trying to implement a simple query that should look like this:

select * from property join entity_area on property.id=entity_area.entity_id and entity_a         


        
3条回答
  •  萌比男神i
    2021-01-08 01:41

    models.property.findAll(
    {
        where: [...],
        include: [{...}],
        limit:12
    },
    {
        subQuery:false
    })
    

提交回复
热议问题