There is a check in WhereBuilder.single to ensure that criteria are actually passed in as queryObject, and if there are none, it returns an empty string.
This can cause problems because some code that operates on its return value expects an object, which it returns normally. The result is that calling code can check for a property called query inside the returned object, and get undefined as a result. This broke some queries for me.
There is a check in WhereBuilder.single to ensure that criteria are actually passed in as queryObject, and if there are none, it returns an empty string.
This can cause problems because some code that operates on its return value expects an object, which it returns normally. The result is that calling code can check for a property called query inside the returned object, and get undefined as a result. This broke some queries for me.