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
b4eed02b
Commit
b4eed02b
authored
Jun 03, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that non-arrays may also be used as documents
parent
cb3e7f15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
crud.md
docs/tutorial/crud.md
+15
-0
No files found.
docs/tutorial/crud.md
View file @
b4eed02b
...
...
@@ -28,6 +28,21 @@ This page covers the following common use cases:
documents at a time
*
[
Aggregating
](
#aggregating-documents
)
documents
Note that the use of arrays to express documents in the following examples was
done for simplicity. The driver will also accept instances of stdClass or
[
MongoDB\BSON\Serializable
][
serializable
]
) for these arguments (e.g. query
filters, inserted documents, update documents).
[
serializable
]:
http://php.net/mongodb-bson-serializable
Documents destined for database storage (e.g. insert documents, replacement
documents, embedded documents included in an update operation) may also be
instances of
[
MongoDB\BSON\Persistable
][
persistable
]
. See
[
Persistable Classes
][
persistable-classes
]
for more information.
[
persistable
]:
http://php.net/mongodb-bson-persistable
[
persistable-classes
]:
bson.md#persistable-classes
## Finding One Document
The
[
findOne()
][
findone
]
method returns the first matched document, or null if
...
...
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