@groovy.transform.CompileStatic @groovy.util.logging.Slf4j abstract class DefaultGormDataFetcher<T> extends java.lang.Object implements graphql.schema.DataFetcher<T>
A generic class to assist with querying entities with GraphQL
T
- The domain returnType to queryModifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.String, org.grails.datastore.mapping.model.types.Association> |
associations |
|
protected org.grails.datastore.mapping.model.PersistentEntity |
entity |
|
protected EntityFetchOptions |
entityFetchOptions |
|
protected java.lang.String |
propertyName |
Constructor and description |
---|
DefaultGormDataFetcher
(org.grails.datastore.mapping.model.PersistentEntity entity) |
DefaultGormDataFetcher
(org.grails.datastore.mapping.model.PersistentEntity entity, java.lang.String projectionName) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected grails.gorm.DetachedCriteria |
buildCriteria(graphql.schema.DataFetchingEnvironment environment) |
|
abstract T |
get(graphql.schema.DataFetchingEnvironment environment) |
|
protected org.grails.datastore.mapping.core.Datastore |
getDatastore() |
|
protected java.util.Map |
getFetchArguments(graphql.schema.DataFetchingEnvironment environment, boolean skipCollections) |
|
protected java.util.Map<java.lang.String, java.lang.Object> |
getIdentifierValues(graphql.schema.DataFetchingEnvironment environment) |
|
protected org.grails.datastore.gorm.GormStaticApi |
getStaticApi() |
|
protected void |
initializeEntity(org.grails.datastore.mapping.model.PersistentEntity entity) |
|
protected java.lang.Object |
loadEntity(org.grails.datastore.mapping.model.PersistentEntity entity, java.lang.Object argument) |
|
protected org.grails.datastore.gorm.GormEntity |
queryInstance(graphql.schema.DataFetchingEnvironment environment) |
|
protected java.lang.Object |
withTransaction(boolean readOnly, groovy.lang.Closure closure) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |