interface GraphQLDataFetcherManager
An interface to register and retrieve data fetcher instances
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.util.Optional<BindingGormDataFetcher> |
getBindingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity, GraphQLDataFetcherType type) Returns a data fetcher instance to be used in CREATE or UPDATE |
|
abstract java.util.Optional<DeletingGormDataFetcher> |
getDeletingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity) Returns a data fetcher instance to be used in DELETE |
|
abstract java.util.Optional<ReadingGormDataFetcher> |
getReadingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity, GraphQLDataFetcherType type) Returns a data fetcher instance to be used in GET or LIST |
|
abstract void |
registerBindingDataFetcher(java.lang.Class clazz, BindingGormDataFetcher fetcher) Register a fetcher instance to be used for CREATE or UPDATE for the provided class. |
|
abstract void |
registerDeletingDataFetcher(java.lang.Class clazz, DeletingGormDataFetcher fetcher) Register a fetcher instance to be used for DELETE for the provided class. |
|
abstract void |
registerReadingDataFetcher(java.lang.Class clazz, ReadingGormDataFetcher fetcher) Register a fetcher instance to be used for GET or LIST for the provided class. |
Returns a data fetcher instance to be used in CREATE or UPDATE
entity
- The entity representing the domain used in the fetchertype
- Which returnType of fetcher to return (CREATE or UPDATE)Returns a data fetcher instance to be used in DELETE
entity
- The entity representing the domain used in the fetcherReturns a data fetcher instance to be used in GET or LIST
entity
- The entity representing the domain used in the fetchertype
- Which returnType of fetcher to return (GET or LIST)Register a fetcher instance to be used for CREATE or UPDATE for the provided class.
clazz
- The class to be updated or deletedfetcher
- The fetcher instance to be usedRegister a fetcher instance to be used for DELETE for the provided class.
clazz
- The class to be deletedfetcher
- The fetcher instance to be usedRegister a fetcher instance to be used for GET or LIST for the provided class.
clazz
- The class to be retrievedfetcher
- The fetcher instance to be used