Content.query contentTypes

Enonic version: Enonic XP 6.0.0
OS: OSX Yosemite

The query example at http://xp.readthedocs.org/en/stable/reference/libraries/content/api/query.html might contain a bug! At least, it seems to me that contentTypes should be on a more structured format. I get no content output with this:

var result = content.query({
	count: 5, 
	contentTypes: ["article", "comment"]
});

However, I get some contents when I use this:

var result = content.query({
	count: 5, 
	contentTypes: ["no.domain.app:article", "no.domain.app:comment"]
});

You are absolutely right, the example in the query string is wrong too…
We’ll fix it, thanks for letting us know :smile: