Thursday 18 May 2017

Skip record from one table if record has associatied record in other table

How to skip a record if it's associated record is available in other table using sequelize? Don't wana use loop by finding all records. Example: We have two tables User and Property, user is associated(has one relation) with Property. I want to find all those records in User table where that record does not have associative data in Property table.



via Hassan Ajaz

No comments:

Post a Comment