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
This issue was originally surfaced in Discord here.
When creating a function and tracking it such as follows:
CREATE
OR REPLACE FUNCTION public.select_from_tmp(uuids uuid []) RETURNS SETOF tmp LANGUAGE plpgsql STABLE AS $ function $ BEGIN RETURN QUERY
SELECT
*
FROM
tmp
WHERE
id = ANY(uuids);
END;
$ function $
The GraphQL engine does not allow queries or calling this function.
{
"errors": [
{
"message": "variable 'uuids' is declared as '[_uuid!]!', but used where '_uuid' is expected",
"extensions": {
"path": "$.selectionSet.select_from_tmp.args.args.uuids",
"code": "validation-failed"
}
}
]
}
It should be possible to create a function that needs an array of UUID's as the input and call that function!
The text was updated successfully, but these errors were encountered:
This issue was originally surfaced in Discord here.
When creating a function and tracking it such as follows:
The GraphQL engine does not allow queries or calling this function.
Yields the following:
Yet changing things to a string also fails:
yields:
What should be possible via:
Is not possible and yields an error.
It should be possible to create a function that needs an array of UUID's as the input and call that function!
The text was updated successfully, but these errors were encountered: