comment
Specifies a user-defined message which will be associated with this information in the logs, etc.
This option exists to easily find the query in the database logs. It does not impact the behavior of the request.
Example
users.insertOne(
User("Bob", 25),
options = { comment("register user") },
)Specifies a user-defined message which will be associated with this information in the logs, etc.
This option exists to easily find the query in the database logs. It does not impact the behavior of the request.
Specifies a user-defined message which will be associated with this information in the logs, etc.
This option exists to easily find the query in the database logs. It does not impact the behavior of the request.
Example
users.insertOne(
User("Bob", 25),
options = {
comment {
writeDocument {
writeString("request", "Register user")
writeString("name", "Bob")
}
}
},
)Specifies a user-defined message which will be associated with this information in the logs, etc.
This option exists to easily find the query in the database logs. It does not impact the behavior of the request.
Example
users.insertOne(
User("Bob", 25),
options = { comment(TelemetryInformation.current) },
)