pymongo


SON Manipulator in mongo queries


I've written a SON manipulator to encode some custom objects into mongo following http://api.mongodb.org/python/current/examples/custom_type.html. This works brilliantly for encoding and decoding the objects on their way into and out of the collection, but as far as I can tell, there's no way to use it in a query. If I try to query using an object which can be encoded using the manipulator, I get the same cannot encode object error that you get if you try to insert the object directly without using the manipulator. However, I can obviously query perfectly if I manually encode the object into the query. Is there a neat way to use the SON manipulator in queries without resorting to manually encoding the object?

Related Links

How to enable `projection` in pymongo query class `find()`?
Variables don't hold value for very long pymongo ipython
pymongo upgrade to 3.0.3 causes this statement to fail
UUID to NUUID in Python
how to test for empty mongodb query in pymong
read video file from mongodb with pymongo
Get OperationFailure error with PyMongo 2.7.1
Inserting string as regular string in mongodb
Mongos + Pymongo 2.5 ==>No suitable hosts found
pymongo collection add item using update
How to convert objectid to string
Conditional atomic mongo remove with different results
python script to connect to mongodb master
flask-admin and pymongo search
Running code when mongoengine loads a document
Can't replace mongo document

Categories

HOME
php
magento2
apple-push-notifications
windows-8.1
livecode
add-on
antd
kivy
message-queue
openlayers-3
magento-2.0
google-play-services
gallery
gentelella
cocotb
nsstring
fbloginview
responsivevoice
bundler
squirrel-sql
temperature
vmware-workstation
pinterest
scheduled-tasks
clr
pe
unity-container
candlestick-chart
ratio
offline-caching
tsung
microprocessors
jsonresult
guice
credit-card
matlab-app-designer
instructions
vcenter
fotorama
apptentive
spring-rabbitmq
xerces-c
formsauthenticationticket
jade4j
cartopy
google-now
classnotfoundexception
robust
vungle-ads
transparency
vesta
htmlspecialchars
nslayoutconstraint
wikimapia
front-camera
finder
bpms
oid
xmlbeans
django-testing
fragmentstatepageradapter
maven-release-plugin
groovyfx
strpos
maximize
utf-16
ioctl
msgpack
openshift-cartridge
ora-04091
calcite
auto-generate
sqlbase
enaml
embeddedwebserver
phpredis
findersync
fasterxml
iplimage
forceclose
mod-perl
profiles
discovery
quickgraph
node.js-stream
mongo-jackson-mapper
tfs-sdk
audiotoolbox
workflow-manager-1.x
gamesalad
platform-independent
firebird1.5
nsfont
navigationcontroller
memory-pool
infopath-2007
differentiation
vows
upshot
jquery-1.4
bll
activestate
icicles
fgetc
raw-data

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App