-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtering on Computed Columns #357
Comments
I can create a Computed Field, with CREATE OR REPLACE FUNCTION public._affected_entity_entity_name(ae public.affected_entity)
RETURNS TEXT AS $$
DECLARE
entity_name TEXT;
BEGIN
SELECT name INTO entity_name
FROM public.entity
WHERE id = ae.entity_id
LIMIT 1;
RETURN entity_name;
END;
$$ LANGUAGE plpgsql; but I can not filter it as well. if we add support to filtering Computed Fields, maybe it will be a good enough workaround, and easier to implement |
Sorry I must have linked to the wrong issue in my PR. This isn't resolved. your request from the first comment is a dupe of #88 but your comment about filtering on computed columns is a good one. I'm going to change the title of this issue to that and re-open |
I have a table with many to one relationship (affected_entity -> entity)
When I query affected_entity, I want to filter by the fields of entity table.
But the only filters I have are like:
affected_entityFilter
Fields
id: UUIDFilter
entity_id: UUIDFilter
In the affected_entity node I can access entity, but without filters
Can I help in any way?
The text was updated successfully, but these errors were encountered: