Delete a record using Mongo Query DB Tool
Team,
Facing issue in delete call using mongo query db tool. When we try to delete using db.collectionName.remove is not possible as it accepts request only json.
Please share the possible way to delete the record in mongo
Comments
-
As its name suggests, the "MongoDB Query Tool" is query-only. It fetches the collection with the name provided in the Collection field and will perform a "find" on the collection based on the provided query and projection arguments. No other operations on the collection are supported including things like "drop", "delete", "insert", or "update".
0 -
Same set of querying right? Why not it can be used for delete?
0 -
The tool only support the "find" operation which can only query documents from a collection object. If the "MongoDB Query Tool" was ever enhanced to perform more then just queries then we'd probably have to rename it to just "MongoDB Tool" (or something).
If needed, you can use the MongoDB java API from an Extension Tool to perform whatever you need, including non-query operations. See their quick start which has code examples.
0 -
Sure.. is there anyway in near future parsoft team add this to the tool?
0 -
is there anyway in near future parsoft team add this to the tool?
You would need to discuss with your technical representative from Parasoft.
0 -
Sure Thanks Let my soa team know this.
0 -
Hello, per Parasoft guidelines I tried adding MongoDB Query tool jar to my SOA Test & Virtualize 9.10 version. When I click on Add Jars button of System properties section, I see only mongo-java-driver under org.mongodb and didn't find mongo db query tool. Can someone help me adding mango db query tool to my soa test?
0 -
anarra,
Did you get a chance to restart SOAVirt after adding your mongodbquerytool.jar file to system preferences? After restart, it should appear in your tools selection when adding a new test to your test suite.
1 -
The new MongoDB Tool supports find, insert, update, and delete. It also now supports sort, skip and limit for query results.
0