rpcesar
unread,Oct 11, 2011, 12:36:58 PM10/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I am building an application that often times needs to be cross
referenced, and visualized in many grids (slickgrid) and views, in a
variety of ways. I have facilitated this thus far using a custom built
javascript mongo bridge, which works with a unified data controller.
The system can query specific collections and fields by passing it a
json filter on the client-side. The only real problem I have run into
is handling BSON Id's. for instance, one query we have looks like
this:
{"MyFriends.$id" : ObjectId("4e782c3bcf7a990f2854627d"}
The problem is, this needs to be generated on the javascript (browser)
side, for which ObjectId is unavailable. Passing it as a straight
string also does not work. The query DOES work if we generate /
convert the string to a MongoId server side. However, I am running
into issues attempting this client side. I have considered doing some
sort of server side filter on the terms, but my team is looking or an
easier solution that can be implemented very quickly. Any help would
be appreciated.