Skip to content

Instantly share code, notes, and snippets.



Created May 1, 2018
What would you like to do?
Querying database using Sequelize
const models = require('../models');
models.user.findOne({ where: {id: id} })
.then(user => {
// Do something with User instance
.then((newUser) => {
// Do something with User instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment