我正在使用m子mongo:execute-command
从mongo中提取数据。
<mongo:execute-command config-ref="APIDB" doc:name="Mongo DB" commandName="eval" commandValue="db.products.find({"isTenYear" : true}, {"_id" : 0, "TypeId" : 1, "SubTypeId" : 1})">
这使我回到
{ "serverUsed" : "localhost/127.0.0.1:27017" , "retval" : { "_mongo" : { "slaveOk" : false , "host" : "EMBEDDED"} , "_db" : { "_mongo" : { "slaveOk" : false , "host" : "EMBEDDED"} , "_name" : "APIDB"} , "_collection" : { "_mongo" : { "slaveOk" : false , "host" : "EMBEDDED"} , "_db" : { "_mongo" : { "slaveOk" : false , "host" : "EMBEDDED"} , "_name" : "APIDB"} , "_shortName" : "products" , "_fullName" : "APIDB.products"} , "_ns" : "APIDB.products" , "_query" : { "isTenYearSearchSSN" : true} , "_fields" : { "_id" : 0.0 , "viTypeId" : 1.0 , "viSubTypeId" : 1.0} , "_limit" : 0.0 , "_skip" : 0.0 , "_batchSize" : 0.0 , "_options" : 0.0 , "_cursor" : null , "_numReturned" : 0.0 , "_special" : false} , "ok" : 1.0}
没有结果