setUsePrimaryConnection Method
Force a query to be executed synchronously against primary connection. This option is ignored if provided by frontend.
setUsePrimaryConnection(val: boolean): QueryOptionsBuilder
Parameter | Type | Description |
---|---|---|
val | boolean | A boolean value to force use primary connection on main thread to execute query. |
Returns - QueryOptionsBuilder
@type QueryOptionsBuilder for fluent interface.
Defined in
- core/common/src/ConcurrentQuery.ts Line 171
Last Updated: 20 June, 2023