You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ This will allow you to use your registered alias like:
94
94
Query Builder
95
95
-------------
96
96
97
-
The database driver plugs right into the original query builder. When using mongodb connections you will be able to build fluent queries to perform database operations. For your convenience, there is a `collection` alias for `table` as well as some additional mongodb specific operations like `push` and `pull`.
97
+
The database driver plugs right into the original query builder. When using mongodb connections you will be able to build fluent queries to perform database operations. For your convenience, there is a `collection` alias for `table` as well as some additional mongodb specific operators/operations.
Selects documents if the array field is a specified size.
256
+
257
+
User::where('tags', 'size', 3)->get();
258
+
259
+
**Regex**
260
+
261
+
Selects documents where values match a specified regular expression.
262
+
263
+
User::where('name', 'regex', new MongoRegex("/.*doe/i"))->get();
264
+
265
+
**Type**
266
+
267
+
Selects documents if a field is of the specified type. For more information check: http://docs.mongodb.org/manual/reference/operator/query/type/#op._S_type
268
+
269
+
User::where('age', 'type', 2)->get();
270
+
271
+
**Mod**
272
+
273
+
Performs a modulo operation on the value of a field and selects documents with a specified result.
274
+
275
+
User::where('age', 'mod', array(10, 0))->get();
276
+
277
+
**Where**
278
+
279
+
Matches documents that satisfy a JavaScript expression. For more information check http://docs.mongodb.org/manual/reference/operator/query/where/#op._S_where
280
+
239
281
### Inserts, updates and deletes
240
282
241
283
All basic insert, update, delete and select methods should be implemented.
0 commit comments