object Configurator
- Alphabetic
- By Inheritance
- Configurator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
ExecutionConfiguration(skipValidation: Boolean = false, enableIntrospection: Boolean = true, allowMutationsOverGetRequests: Boolean = false, queryExecution: QueryExecution = QueryExecution.Parallel, validations: List[QueryValidation] = AllValidations, queryCache: UIO[Cache] = Cache.empty(Trace.empty)) extends Product with Serializable
Configuration for the execution of a GraphQL query.
Configuration for the execution of a GraphQL query.
- skipValidation
if true, the query will not be validated (in that case, the
validations
field is ignored). Default: false.- enableIntrospection
if true, introspection queries are allowed. Default: true.
- allowMutationsOverGetRequests
if true, mutations are allowed for GET requests. Note that this is highly discouraged as it goes against the recommended practices. Default: false.
- queryExecution
the execution strategy to use (sequential, parallel, batched). Default: parallel.
- validations
the validations to run on the query during the validation phase. Default: all available validations.
- queryCache
An effect used to create a zio.query.Cache to use with zio.query.DataSource-backed ZQueries. The effect will be run for each query execution to create a new cache, so ensure that any side-effects are properly captured in the provided effect. Default: The default empty cache implementation from zio-query
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
setAllowMutationsOverGetRequests(allow: Boolean): URIO[Scope, Unit]
Enable or disable mutations for GET requests.
Enable or disable mutations for GET requests. See ExecutionConfiguration for more details
-
def
setEnableIntrospection(enable: Boolean): URIO[Scope, Unit]
Enable or disable introspection queries.
Enable or disable introspection queries.
- enable
if true, introspection queries are allowed.
-
def
setQueryCache(mkCache: UIO[Cache]): URIO[Scope, Unit]
Sets an effect which will be used to create a new ZQuery zio.query.Cache for each query execution.
Sets an effect which will be used to create a new ZQuery zio.query.Cache for each query execution. This allows customizing the initial cache parameters or providing a custom implementation.
- See also
ExecutionConfiguration for more details
-
def
setQueryExecution(queryExecution: QueryExecution): URIO[Scope, Unit]
Set the execution strategy to use (sequential, parallel, batched).
Set the execution strategy to use (sequential, parallel, batched).
- queryExecution
the execution strategy to use.
-
def
setSkipValidation(skip: Boolean): URIO[Scope, Unit]
Skip validation of the query.
Skip validation of the query.
- skip
if true, the query will not be validated (in that case, the
validations
field is ignored).
-
def
setValidations(validations: List[QueryValidation]): URIO[Scope, Unit]
Set the validations to run on the query during the validation phase.
Set the validations to run on the query during the validation phase.
- validations
the validations to run on the query during the validation phase.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )