Rely on Collection to apply read/write opts for old servers
Server versions < 3.4 do not support write concerns for drop commands. Rather than pass the context's write options directly to drop(), filter them through the Collection class so it can decide to inherit them based on the server's wire version. Likewise for executing find() on the output collection.
Showing
Please
register
or
sign in
to comment