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
However, I'd like to filter out some records at the edge based on security requirements and not return them in the response. Since namedEdge is not exported, I cannot manipulate it.
(For instance, I'd like to do something like u.Edge.Group= nil)
While it seems possible to achieve this with a custom template, isn't there a standard solution? Also, are there plans to add this capability as a standard feature in the future?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to process queries using GraphQL.
When using edge with 99designs/gqlgen, I believe we end up using named-edges and would likely return the response directly.
ent documentation on named edges
However, I'd like to filter out some records at the edge based on security requirements and not return them in the response. Since namedEdge is not exported, I cannot manipulate it.
(For instance, I'd like to do something like u.Edge.Group= nil)
ent/entc/gen/template/dialect/sql/feature/namedges.tmpl
Line 15 in f822c51
While it seems possible to achieve this with a custom template, isn't there a standard solution? Also, are there plans to add this capability as a standard feature in the future?
Beta Was this translation helpful? Give feedback.
All reactions