- Issue created by @usmanjutt84
I am getting an error that class doesn't not exists when installing the module via drush. However, it generate dynamic permissions when I create a GraphQL server. So, it only happens on installing via drush.
Class "graphql.permission_provider" does not exist.
and you will get the error.
It looks like the providing service name in the permission_callbacks doesn't work while installing the module via drush. So, we have to point the callback to the service class instead of service name so that it also works when installing module via drush.
Plus, after fixing above error, there would be another error below:
The "graphql_server" entity type does not exist.
In the "permissions()" callback, the entity is not yet available, so also have to check if it is available.
Review, Merge.
Active
4.0
Code