Created
June 29, 2017 16:34
-
-
Save janzenz/85cb6bbcdff1cedcb860352df6373cda to your computer and use it in GitHub Desktop.
Mongo Query for Patients with invalid MMJ Card
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
db.getCollection('Patients').find({ | |
mmjCardNumber: { $not: /^[0-9]{7}[a-zA-Z]{4}[0-9]{9}$/ } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment