Skip to content

Commit 2b7be07

Browse files
authored
PHPLIB-987: Add more examples (#981)
* Fix include path for autoload file * Add examples for bulk writes and with_transaction * Add aggregation example * Add example for persistable objects * Ignore certain phpcs errors for all examples * Add example for deserialisation using typemap * Remove unnecessary batchSize option * Use __DIR__ instead of dirname(__FILE__) * Fix capitalisation for TypeMap * Simplify persistable example models * Add note about replica set requirements * Add note about examples to the documentation
1 parent 2d48dea commit 2b7be07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/index.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ following pages should help you get started:
3737

3838
- :doc:`/reference/bson`
3939

40+
Code examples can be found in the ``examples`` directory in the source code.
41+
4042
If you have previously worked with the legacy ``mongo`` extension, it will be
4143
helpful to review the :doc:`/upgrade` for a summary of API changes between the
4244
old driver and this library.

0 commit comments

Comments
 (0)