Created
February 6, 2019 17:29
-
-
Save vonvick/e4b50121b9d30d30ade810d4bde48bb3 to your computer and use it in GitHub Desktop.
another example of raw queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cars = await db.sequelize.query('SELECT "id" FROM Cars WHERE "Cars"."ownerId" = ?', { | |
replacements: ['active'], type: sequelize.QueryTypes.SELECT | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment