SELECT queries to be performed on data that is stored on a remote MongoDB server.
Syntax
Arguments
You can also connect by URI:
You can pass the arguments using a named collection:
Returned value
A table object with the same columns as the original MongoDB table.Examples
Suppose we have a collection namedmy_collection defined in a MongoDB database named test, and we insert a couple of documents:
mongodb table function: