You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define domain with not default datastore like:
classSpeaker {
String firstName
String lastName
String name
String email
String bio
static graphql =GraphQLMapping.build {
operations.delete.enabled false//or//operations.get//operations.list//operations.count//operations.create//operations.update//operations.delete
}
static constraints = {
email nullable: true, email: true
bio nullable: true
}
static mapping = {
datasource "rimm"// <------ here
bio type: 'text'
name formula: 'concat(FIRST_NAME,\'\',LAST_NAME)'
talks sort: 'id'
}
}
I am getting error like:
curl -X "POST" "http://localhost:8080/graphql" \ 52 ↵
-H "Content-Type: application/graphql" \
-d $'
{
speakerCount
}'
{"data":{"speakerCount":null},"errors":[{"message":"Exception while fetching data (/speakerCount) : Class org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher can not access a member of class org.grails.orm.hibernate.HibernateDatastore$2 with modifiers \"public volatile\"","errorType":"DataFetchingException","locations":[{"line":3,"column":3}]}]}
The text was updated successfully, but these errors were encountered:
If I define domain with not default datastore like:
I am getting error like:
The text was updated successfully, but these errors were encountered: