Collection extensions
selectmany
Returns: Collection (Inner Type)
The SELECTMANY function is used when you have a collection of things that themselves contain another collection, and you want to aggregate them all together.
For example, if you have a ROOM COLLECTION and you want to get all of the characters in all of those rooms, you could do .SelectMany(x, @x.Characters) and you would have a CHARACTER COLLECTION with all these characters.
The SELECTMANY function is used when you have a collection of things that themselves contain another collection, and you want to aggregate them all together.
For example, if you have a ROOM COLLECTION and you want to get all of the characters in all of those rooms, you could do .SelectMany(x, @x.Characters) and you would have a CHARACTER COLLECTION with all these characters.