Skip to content

Future server versions may not need shard key for write command query criteria #2181

Open
@jmikola

Description

@jmikola

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

Future server versions may no longer require a shard key in updateOne (DRIVERS-817). This may also extend to deleteOne and findAndModify. I believe ODM currently injects the shard key into queries to satisfy the requirement for current server versions, but this is something that may be possible to relax down the line. Opening this issue as a preemptive tracking ticket.

There is a separate initiative to relax this requirement for updateMany (DRIVERS-818); however, that is being scoped/designed independently and may come in a later server version than updateOne support.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions