Commit eabdfd30 authored by Jeremy Mikola's avatar Jeremy Mikola

Specify classes for returnDocument option constants

parent 63001e25
...@@ -35,8 +35,10 @@ class FindOneAndReplace implements Executable ...@@ -35,8 +35,10 @@ class FindOneAndReplace implements Executable
* document. * document.
* *
* * returnDocument (enum): Whether to return the document before or after * * returnDocument (enum): Whether to return the document before or after
* the update is applied. Must be either RETURN_DOCUMENT_BEFORE or * the update is applied. Must be either
* RETURN_DOCUMENT_AFTER. The default is RETURN_DOCUMENT_BEFORE. * FindOneAndReplace::RETURN_DOCUMENT_BEFORE or
* FindOneAndReplace::RETURN_DOCUMENT_AFTER. The default is
* FindOneAndReplace::RETURN_DOCUMENT_BEFORE.
* *
* * sort (document): Determines which document the operation modifies if * * sort (document): Determines which document the operation modifies if
* the query selects multiple documents. * the query selects multiple documents.
......
...@@ -35,8 +35,10 @@ class FindOneAndUpdate implements Executable ...@@ -35,8 +35,10 @@ class FindOneAndUpdate implements Executable
* document. * document.
* *
* * returnDocument (enum): Whether to return the document before or after * * returnDocument (enum): Whether to return the document before or after
* the update is applied. Must be either RETURN_DOCUMENT_BEFORE or * the update is applied. Must be either
* RETURN_DOCUMENT_AFTER. The default is RETURN_DOCUMENT_BEFORE. * FindOneAndUpdate::RETURN_DOCUMENT_BEFORE or
* FindOneAndUpdate::RETURN_DOCUMENT_AFTER. The default is
* FindOneAndUpdate::RETURN_DOCUMENT_BEFORE.
* *
* * sort (document): Determines which document the operation modifies if * * sort (document): Determines which document the operation modifies if
* the query selects multiple documents. * the query selects multiple documents.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment