Call supabase postgresql function

I have created a postgresql function that adds a new order to the orders table. The function takes three parameters.
How to call supabase postgresql function with parameters from action? The function does not return a result.
This code not work(

```
final response = await supabase.rpc('create_food_order', params: { '_menu_order_id': 2, 'food_id': 5, '_created_by': 'e3895b73-4e5b-481a-b82f-3057efa2e28c' });
```

2
12 replies