TypeLoader
- Type
- Class
- Namespace
- craft\gql
- Inherits
- craft\gql\TypeLoader
- Since
- 3.3.0
Class TypeLoader
View source (opens new window)
# Public Methods
Method | Description |
---|---|
flush() | Flush all registered type loaders. |
loadType() | |
registerType() | Register a type with a callable loader function. |
# flush()
Flush all registered type loaders.
View source (opens new window)
# loadType()
View source (opens new window)
Arguments
$type
(string (opens new window))
Returns
\GraphQL\Type\Definition\Type
Throws
# registerType()
Register a type with a callable loader function.
View source (opens new window)
Arguments
$type
(string (opens new window))$loader
(callable (opens new window))