static interface GraphQLDomainPropertyManager.Builder
Type Params | Return Type | Name and description |
---|---|---|
|
abstract groovy.transform.builder.Builder |
alwaysNullable() Whether or not properties should allow nulls should be overridden so that properties are nullable, even if they otherwise would not be. |
|
abstract groovy.transform.builder.Builder |
condition(groovy.lang.Closure closure) Exclude properties based on the return returnType of the provided closure. |
|
abstract groovy.transform.builder.Builder |
exclude(java.lang.String[] props) Exclude properties from being returned |
|
abstract groovy.transform.builder.Builder |
excludeIdentifiers() Exclude identifier properties from being returned |
|
abstract groovy.transform.builder.Builder |
excludeIdentifiers(boolean exceptComposite) Exclude identifier properties from being returned |
|
abstract groovy.transform.builder.Builder |
excludeTimestamps() Exclude 'dateCreated' and 'lastUpdated' from being returned |
|
abstract groovy.transform.builder.Builder |
excludeVersion() Exclude the version property from being returned |
|
abstract java.util.List<GraphQLDomainProperty> |
getProperties(org.grails.datastore.mapping.model.PersistentEntity entity) Retrieves the desired properties based on the conditions previously applied The mapping will be retrieved from the entity `static graphql = |
|
abstract java.util.List<GraphQLDomainProperty> |
getProperties(org.grails.datastore.mapping.model.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