Hi Morris,
thanks for your feedback.
I tried out the QueryCollection example from github and discovered there is a bug in line 47
for $doc in collection()
The original example shouldn’t cause any problems, because the non-argument function call will reference the database that has been created in line 28 (and the code seems in fact to work on my system). Did you modify the code a little? What BaseX version have you been using for testing?
Christian