Сергей Барков
2016-12-06 16:10:01 UTC
Hello ! On my mongo db c# application I have updated mongo c# driver
version from 3.3.0 to 3.4.0 and have received that reply from my web
service:
"Error": "Unsupported filter: (Convert({document}{Time}) < 05.12.2016 16 <callto:05.12.2016 16>:03:39).".
This is my code:
Expression<Func<Message, bool>> query = x => x.id == Id &&
x.Time < transportTime && x.Time > errorTime &&
x.Lat > 0 && x.Long > 0 &&
x.Liters > 0;
var item = collection.Find(query).SortByDescending(x => x.Time).Limit(1).FirstOrDefault();
I appreciate any feedback you may have.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/642f1271-f78b-4cbe-b41d-80f9fd0b1bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
version from 3.3.0 to 3.4.0 and have received that reply from my web
service:
"Error": "Unsupported filter: (Convert({document}{Time}) < 05.12.2016 16 <callto:05.12.2016 16>:03:39).".
This is my code:
Expression<Func<Message, bool>> query = x => x.id == Id &&
x.Time < transportTime && x.Time > errorTime &&
x.Lat > 0 && x.Long > 0 &&
x.Liters > 0;
var item = collection.Find(query).SortByDescending(x => x.Time).Limit(1).FirstOrDefault();
I appreciate any feedback you may have.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/642f1271-f78b-4cbe-b41d-80f9fd0b1bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.