You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading a project from ColdFusion 9 (JRun) to 10 (Tomcat), I discovered that JavaCast() was required to set $sum parameters to "int" otherwise the result was always returned as 0.
As per the mongoDB docs, findOne has two optional arguments, criteria and projection:
http://docs.mongodb.org/manual/reference/method/db.collection.findOne/
The findOne method in DBCollection.cfc only passes in criteria, so trying to exclude the id value with a projection of
{_id:0}
doesn't work.Updating the CFC to simply include/pass through the extra argument doesn't appear to change anything.
The text was updated successfully, but these errors were encountered: