Function that returns SupaBase row

Database & APIs
Resolved
I've been looking for an example of a FlutterFlow function for days.

The function only should return the first record from the SupaBase table “company”. 

(result Type = SupaBaseRow / company)

In SQL it would look something like this:

SELECT * FROM company ORDER BY name LIMIT(1)

How can I create a FlutterView function like this?
Does anyone have an example?

Further question about the package supabase.dart:
( import '/backend/supabase/supabase.dart' )

How can you work with it? An example?

When I use "SupaFlow.client" in a FlutterFlow function,
I get the message that “SupaFlow” is unknown...

final client = SupaFlow.client;
return await client.from('company').select('id,name');

It would be nice if someone could help, I'm stuck with FlutterFlow...


What have you tried so far?

-

Did you check FlutterFlow's Documentation for this topic?
No
11 replies