To filter out articles that do not have any content assigned to them, you will have to expand the content id attribute and set the optional directive to false.
[ { "/common/topic/image" : [ { "id" : null } ], "article" : [ { "content" : { "id" : null, "optional" : false } } ], "name" : "bill gates", "type" : "/common/topic" } ]
This will give you the following result:
[ { "/common/topic/image" : [ { "id" : "/guid/9202a8c04000641f8000000004fb4c01" }, { "id" : "/wikipedia/images/commons_id/4486276" } ], "article" : [ { "content" : { "id" : "/guid/9202a8c04000641f800000000903535d" } } ], "name" : "Bill Gates", "type" : "/common/topic" } ]
For more information on using the additional directive, see the documentation here .
Shawn simister
source share