On this page本页内容
The native method listed here is for the legacy mongo shell.
To use native methods in mongosh, see Native Methods in mongosh.
cat(filename,useBinaryMode)
Returns the contents of the specified file. The method returns with output relative to the current shell session and does not impact the server.
filename | string | The filepath to open. The filepath must be on the local file system. |
useBinaryMode | boolean | Optional. Flag to determine whether to open file in binary mode or text mode. Applicable for Windows.
The default value is
|