|
Here is an example of IDL generated command for renameCollection which has a namespacestring command parametet. The generated code drops off the tenant id.
{ // skip correct codes.
|
if (MONGO_likely(ctxt.checkAndAssertType(commandElement, String))) {
|
_commandParameter = NamespaceStringUtil::deserialize(boost::optional<mongo::TenantId>{}, commandElement.valueStringData());
|
}
|
else {
|
ctxt.throwMissingField(kCommandParameterFieldName);
|
}
|
}
|
Actually, "NamespaceStringUtil::deserialize(ctxt.getTenantId(), commandElement.valueStringData())" is expected.
|