The method Query\Builder::options() is useful to set contextual options for the built query. It is neither tested nor documented.
Model::where('foo', 'bar') ->options(['readConcernLevel' => 'majority']); ->get()
Asked on Slack
Hello, IHAC that is using query builder and they are interested in changing the readconcernlevel to majority in some of their queries (at query level), do we have any documentation for this? or if there isn't, is there any documentation to change the readconcernlevel at query level? (edited)
- is related to
-
PHPORM-209 Specify read preferences in query / aggregation builder
- Backlog