Created
April 21, 2015 15:49
-
-
Save mickhansen/7a3a85433557244e17a2 to your computer and use it in GitHub Desktop.
Sequelize JSONB Querying proposal
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
{ | |
field: { | |
propa: 'valuea', | |
propb: { | |
propc: 'valueb' | |
} | |
} | |
} | |
// "field"#>>'{propa}' = 'valuea' AND "field"#>>'{propb, propc}' = 'valueb' | |
{ | |
field: { | |
$contains: { | |
company: "Magnafone" | |
} | |
} | |
} | |
// field @> '{"company": "Magnafone"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment