We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pymongo.mongo_client.MongoClient
1 parent 81fdc1b commit 0ce2cedCopy full SHA for 0ce2ced
python/ql/src/experimental/semmle/python/frameworks/NoSQL.qll
@@ -15,6 +15,10 @@ private module NoSql {
15
/** Gets a reference to `pymongo.MongoClient` */
16
private API::Node pyMongo() {
17
result = API::moduleImport("pymongo").getMember("MongoClient").getReturn()
18
+ or
19
+ // see https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient
20
+ result =
21
+ API::moduleImport("pymongo").getMember("mongo_client").getMember("MongoClient").getReturn()
22
}
23
24
/** Gets a reference to `flask_pymongo.PyMongo` */
0 commit comments