Last active
January 6, 2021 11:49
-
-
Save Jacknq/f7c2a2e6031a928a520ce07a0999abad to your computer and use it in GitHub Desktop.
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
SELECT $ FROM post | |
INCLUDE categories,tags | |
where $.Categories[*].$id any in [ 7 , 10] | |
SELECT *.Categories[*], sum(*.Categories[*].id) as c | |
FROM post | |
--include $.Categories | |
where $.Categories!=null and Count($.Categories[*])>0 and $.$missing any !=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment