Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
94826936
Commit
94826936
authored
Oct 25, 2017
by
Katherine Walker
Committed by
Katherine Walker
Oct 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add version to docs and object casting to command prep
parent
cfeaec21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
apiargs-MongoDBCollection-method-aggregate-option.yaml
...es/apiargs-MongoDBCollection-method-aggregate-option.yaml
+12
-3
Aggregate.php
src/Operation/Aggregate.php
+1
-1
No files found.
docs/includes/apiargs-MongoDBCollection-method-aggregate-option.yaml
View file @
94826936
...
...
@@ -34,9 +34,18 @@ post: |
Document validation requires MongoDB 3.2 or later: if you are using an earlier
version of MongoDB, this option will be ignored.
---
source
:
file
:
apiargs-MongoDBCollection-method-find-option.yaml
ref
:
hint
arg_name
:
option
name
:
hint
type
:
string|array|object
description
:
|
The index to use. Specify either the index name as a string or the index key
pattern as a document. If specified, then the query system will only consider
plans using the hinted index.
.. versionadded:: 1.3
interface
:
phpmethod
operation
:
~
optional
:
true
---
source
:
file
:
apiargs-common-option.yaml
...
...
src/Operation/Aggregate.php
View file @
94826936
...
...
@@ -281,7 +281,7 @@ class Aggregate implements Executable
}
if
(
isset
(
$this
->
options
[
'hint'
]))
{
$cmd
[
'hint'
]
=
$this
->
options
[
'hint'
];
$cmd
[
'hint'
]
=
is_array
(
$this
->
options
[
'hint'
])
?
(
object
)
$this
->
options
[
'hint'
]
:
$this
->
options
[
'hint'
];
}
if
(
isset
(
$this
->
options
[
'maxTimeMS'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment