Wrappers
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Wrappers.type
Members list
Value members
Concrete methods
Returns a wrapper that logs slow queries
Returns a wrapper that logs slow queries
Attributes
- duration
threshold above which queries are considered slow
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
Attributes
- maxDepth
the max allowed depth
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
Attributes
- maxFields
the max allowed number of fields
Returns a wrapper that adds field metrics to the query
Returns a wrapper that adds field metrics to the query
Attributes
- 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
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
Attributes
- duration
threshold above which queries are considered slow
Returns a wrapper that prints slow queries
Returns a wrapper that prints slow queries
Attributes
- duration
threshold above which queries are considered slow
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.
Attributes
- duration
threshold above which queries should be timed out
Concrete fields
Returns a wrapper that prints errors to the console
Returns a wrapper that prints errors to the console