DevTest has support for class 4 (pure Java) JDBC connections to SQL databases only - MongoDB, as a NoSQL database, is therefore not directly supported.
You could use a custom extension, or write scripted (JSR223) steps to access the database and save the results to a file or property for use in later steps.
If you need a Java MongoDB driver then this may be of use MongoDB Java Driver