When I create an API endpoint like so:
and want to reference the data as I can reference props, data sources etc in Plasmic as usual, how do I do that? Do I create /api/endpointhere as a data source?
The reason I ask is because I’ve connected Plasmic to Supabase auth and can’t reference my supabase table by UUID, only by email. I wanted to expose the UUID so I could fetch data by primary key rather than the whole table and filtering by email.
- Is it okay to simply query by email? AFAIK, that’s a lot of wasted data being called, and also potentially less secure?
- Is referencing Supabase rows by email totally fine? In which case I’ll just do that.
I modified my API to include the UUID, so I suppose an ideal method would be to get that into my custom properties so I can reference it there?