Last active
November 18, 2017 01:57
-
-
Save thanhdevapp/4570cbe1e2aeb8c472cbc160201ce037 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
//FILTER | |
this.query[ 'fields' ] = [ 'id', 'name', 'email' ]; | |
//WHERE | |
this.query.where = { or: [ { name: { like: `.*${model.keyword}.*`, options: `i` } }, { email: { like: `.*${model.keyword}.*`, options: `i` } }] }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment