Applying URL‐Query Filters to an RPC/VIEW That Returns text/html #4044
Unanswered
patrickmichalina
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @patrickmichalina, I haven't tried it, but it looks like it could work with a custom aggregate for HTML. There is an example here. A rough idea assuming you want to render an HTML table:
This should allow you to order and filter normally. Let me know if it works. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello PostgREST community,
I’m trying to expose a server-side HTML renderer (either as an RPC or a VIEW) that returns
Content-Type: text/html
, but still wants to honor the normal PostgREST URL-query language (e.g.?status=active&order=asc
) to filter and sort the underlying data before rendering.eq
,lt
,order
, etc.) into an HTML-rendering RPC or VIEW?Any pointers—sample SQL, recommended patterns, config settings—would be greatly appreciated!
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions