How to access resolver members in subscription handler/filter? #949
-
When handling an attempt of a user to establish a subscription, I only have the I want to validate access permissions for users attempting to establish a subscription on entities they aren't allowed to access. For that I would like to use the database access that is already established in the resolver, but I don't see how that would be possible. The filter, provided through How should this usually be approached? I'm assuming I'm missing a different approach that is far better suited. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you use dependency injection, you can call |
Beta Was this translation helpful? Give feedback.
If you use dependency injection, you can call
Container.get()
to get the instance of a service you use in resolver and call some methods there.