{hint: By following the 'details' key, disambiguate the request by changing the url to /origin?select=relationship(*) or /origin?select=target!relationship(*), details: [{relationship: public.study_subject[user_study_studyId_fkey][study_subject_loginCode_fkey], origin: public.study, cardinality: m2m, target: public.study_invite}, {relationship: study_invite_studyId_fkey[id][studyId], origin: public.study, cardinality: o2m, target: public.study_invite}], message: More than one relationship was found for study and study_invite}
Error:
type 'List<dynamic>' is not a subtype of type 'String?' in type cast
This needs to be a list:
https://github.com/supabase/postgrest-dart/blob/c8a571cfff9234fd9ba88baa1e3365581ca7de94/lib/src/postgrest_error.dart#L17
The json PostgREST returns:
Where
details
is a List<Map<String,dynamic>>