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
I have a materialized view called course_info_table. This view is tracked by Hasura. I've created a custom function as follows:
CREATEFUNCTIONsearch_course_info(query text)
RETURNS SETOF course_info_table AS $$
SELECT*FROM course_info_table
WHERE info @@ websearch_to_tsquery('english', query)
ORDER BY ts_rank(info, websearch_to_tsquery('english', query)) DESC
$$ language sql stable;
When I attempt to track this function in Hasura, I get the following error:
[
{
"definition": {
"schema": "public",
"name": "search_course_info"
},
"reason": "in function \"search_course_info\": the function \"search_course_info\" cannot be tracked because the function does not return a SETOF table",
"type": "function"
}
]
I'm running Hasura v1.2.2 via Docker.
The text was updated successfully, but these errors were encountered:
I have a materialized view called
course_info_table
. This view is tracked by Hasura. I've created a custom function as follows:When I attempt to track this function in Hasura, I get the following error:
I'm running Hasura v1.2.2 via Docker.
The text was updated successfully, but these errors were encountered: