Type Params | Return Type | Name and description |
---|---|---|
|
GraphQLDomainPropertyManager.Builder |
alwaysNullable() Whether or not properties should allow nulls should be overridden so that properties are nullable, even if they otherwise would not be. |
|
GraphQLDomainPropertyManager.Builder |
condition(groovy.lang.Closure closure) Exclude properties based on the return returnType of the provided closure. |
|
GraphQLDomainPropertyManager.Builder |
exclude(java.lang.String... props) Exclude properties from being returned |
|
GraphQLDomainPropertyManager.Builder |
excludeIdentifiers() Exclude identifier properties from being returned |
|
GraphQLDomainPropertyManager.Builder |
excludeIdentifiers(boolean exceptComposite) Exclude identifier properties from being returned |
|
GraphQLDomainPropertyManager.Builder |
excludeTimestamps() Exclude 'dateCreated' and 'lastUpdated' from being returned |
|
GraphQLDomainPropertyManager.Builder |
excludeVersion() Exclude the version property from being returned |
|
java.util.List<GraphQLDomainProperty> |
getProperties(PersistentEntity entity) Retrieves the desired properties based on the conditions previously applied The mapping will be retrieved from the entity `static graphql = |
|
java.util.List<GraphQLDomainProperty> |
getProperties(PersistentEntity entity, GraphQLMapping mapping) Retrieves the desired properties based on the conditions previously applied |
Whether or not properties should allow nulls should be overridden so that properties are nullable, even if they otherwise would not be.
Exclude properties based on the return returnType of the provided closure. If the closure returns false, the property will not be returned.
closure
- The closure to execute. The org.grails.datastore.mapping.model.PersistentProperty
instance will be passed as the first argument.Exclude properties from being returned
props
- One or more property namesExclude identifier properties from being returned
Exclude identifier properties from being returned
exceptComposite
- If true, composite identifiers will be includedExclude 'dateCreated' and 'lastUpdated' from being returned
Exclude the version property from being returned
Retrieves the desired properties based on the conditions previously applied The mapping will be retrieved from the entity `static graphql = ..`
entity
- The entity to retrieve properties fromRetrieves the desired properties based on the conditions previously applied
entity
- The entity to retrieve properties frommapping
- The entity mapping to build domain properties with