是否可以在我的目标键上使用 substr 来区分 runCommand ?我不断得到missing : after property id :
db.runCommand(
{
distinct: "mycollection",
key: {"myfield" : { $substr: { "$myfield", 0, 10 } }},
}
)
是否可以在我的目标键上使用 substr 来区分 runCommand ?我不断得到missing : after property id :
db.runCommand(
{
distinct: "mycollection",
key: {"myfield" : { $substr: { "$myfield", 0, 10 } }},
}
)