See my comment here:
"Are you sure that it is queried using "userDetails"? I cannot get it to work..."
Hi Donkraft Digital,
Are you referring to the collection name in the 'Searching with Cloud Code' section? In this case the name of the collection is arbitrary, it could be anything you like, as long as the collection you're inserting into is the same as the one you're querying.