Wrappers
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Wrappers.type
Members list
Value members
Concrete methods
Returns a wrapper that check directives on fields and can potentially fail the query
Returns a wrapper that check directives on fields and can potentially fail the query
Value parameters
- check
-
a function from directives to a ZIO that can fail
- excludePureFields
-
if true, pure fields will not be checked
Attributes
Returns a wrapper that logs slow queries
Returns a wrapper that logs slow queries
Value parameters
- duration
-
threshold above which queries are considered slow
Attributes
Returns a wrapper that checks that the query's depth is under a given max
Returns a wrapper that checks that the query's depth is under a given max
Value parameters
- maxDepth
-
the max allowed depth
Attributes
Returns a wrapper that checks that the query has a limited number of fields
Returns a wrapper that checks that the query has a limited number of fields
Value parameters
- maxFields
-
the max allowed number of fields
Attributes
Returns a wrapper that adds field metrics to the query
Returns a wrapper that adds field metrics to the query
Value parameters
- buckets
-
the buckets to use for the duration metric
- durationLabel
-
the name of the duration metric
- extraLabels
-
extra labels to add to the metrics
- totalLabel
-
the name of the total fields metric
Attributes
Returns a wrapper that runs a given function in case of slow queries
Returns a wrapper that runs a given function in case of slow queries
Value parameters
- duration
-
threshold above which queries are considered slow
Attributes
Returns a wrapper that prints slow queries
Returns a wrapper that prints slow queries
Value parameters
- duration
-
threshold above which queries are considered slow
Attributes
Returns a wrapper that times out queries taking more than a specified time.
Returns a wrapper that times out queries taking more than a specified time.
Value parameters
- duration
-
threshold above which queries should be timed out
Attributes
Concrete fields
Returns a wrapper that prints errors to the console
Returns a wrapper that prints errors to the console