Skip to content

Instantly share code, notes, and snippets.

@wovalle
Created February 6, 2019 19:37
Show Gist options
  • Save wovalle/2986fbe18cc1ab93b1bbeed6cfce1bd7 to your computer and use it in GitHub Desktop.
Save wovalle/2986fbe18cc1ab93b1bbeed6cfce1bd7 to your computer and use it in GitHub Desktop.
// 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