Last active
February 6, 2019 16:10
-
-
Save wovalle/45b01d4d64bac11d6563afc4c0d11112 to your computer and use it in GitHub Desktop.
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
import { getRepository } from 'fireorm'; | |
import Band from './models/Band'; | |
const bandRepository = getRepository(Band); | |
const band = await bandRepository.findById('red-hot-chili-peppers'); | |
const albumsAfter2000 = await band.albums.whereGreaterOrEqualThan('year', 2000).find(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment