Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 9, 2020 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4a9dd30cfc9c82ef219c93188e892721 to your computer and use it in GitHub Desktop.
Save parzibyte/4a9dd30cfc9c82ef219c93188e892721 to your computer and use it in GitHub Desktop.
await TuModelo.update({
campo: "nuevo_valor",
otro_campo: "otro_valor",
// ...
}, {
where: {
campo: "determinada_condición",
otro_campo: "otra_condición (sería como usar and)",
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment