We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
by default mongodb's $inc will create a field when incrementing a field that does not exists, i am not sure if the guard on this line is necessary?
$inc
When we try to increment a field that does not exists, the query passes but field was not created.
https://github.com/jenssegers/Laravel-MongoDB/blob/dd899e2c1bee5c4e31fe406499b0523280352032/src/Jenssegers/Mongodb/Query/Builder.php#L404