Created
February 6, 2019 19:37
-
-
Save wovalle/2986fbe18cc1ab93b1bbeed6cfce1bd7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Bands formed from 1990 onwards | |
await bandRepository | |
.whereGreaterOrEqualThan('formationYear', 1990) | |
.find(); | |
// Bands whose name is Porcupine Tree | |
await bandRepository | |
.whereEqualTo('name', 'Porcupine Tree') | |
.find(); | |
// Bands formed after 1985 and that play Progressive Rock | |
await bandRepository | |
.whereGreaterThan('formationYear', 1985) | |
.whereArrayCointain('genres', 'progressive-rock') | |
.find(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment