pcj127
04/03/2022, 7:16 PMjs
await client.rpc<Foo>('create_foo', { name }).select().single();
function:
sql
CREATE OR REPLACE FUNCTION create_foo(
"name" text
)
RETURNS setof foo
...
But getting this following error:
sh
404 Not Found: Could not find the public.create_foo() function or the public.create_foo function with a single unnamed json or jsonb parameter in the schema cache (undefined)
Any idea what I could be missing?Needle
04/03/2022, 7:16 PM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/03/2022, 7:21 PMNeedle
04/03/2022, 7:21 PMpcj127
04/03/2022, 7:40 PMNeedle
04/03/2022, 7:41 PM