Replies: 2 comments 3 replies
-
Interesting idea, although queries can get complex. A feature to evaluate, what do you think @minox86 ? |
Beta Was this translation helpful? Give feedback.
2 replies
-
During the implementation of the algorithm that infers the operation security domain from the filter, it turned out that in reality this solution proposed by @Atlinx is required. Specifically to support the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think the current filtering used by the operation domain is too limiting. The addition of the
and
operator from #214 is nice, but that now prevents me from running multiple queries from one context.Problem
For example consider if we want to launch queries using these domains:
With the current implementation, we would have to make 4 separate EntityManagers.
Solution
We can instead make the domain an array of all the domains we want to query:
Which converts into this filter:
Workarounds
As stated above, you would have to make a dedicated EntityManager for each query in order to inject the appropriate operation domain.
I'm making a GraphQL endpoint, and I'm currently storing the operation domain in a metadata header passed with every GraphQL request. Without this feature, I would have to store multiple operation domains in the metadata header and also specify which domain should go with which request. This would add a lot of complexity to my backend. To avoid this complexity, I'm currently splitting up my queries at the client level, so I'm making multiple calls to the endpoint, which is still not optimal.
Beta Was this translation helpful? Give feedback.
All reactions