fail to expand field and update appstate (Dart / Flutterflow) #4872
-
I'm pretty new to Dart, Flutterflow and Pocketbase, but so far I manage to write all the Dart code necessary for my FF actions. This is my code: Future listRecipes(String? userid) async { final records = await pb.collection('Recipes').getFullList( |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
It is not clear what is the question or the issue with the above code. General info for expand you can find in https://pocketbase.io/docs/working-with-relations/#expanding-relations. If you need further help please elaborate a little more what you are trying to do and export your collections configuration as json (Admin UI > Settings > Export collections). |
Beta Was this translation helpful? Give feedback.
-
Yes, I finally get to see: data.auth | authRecord |
Beta Was this translation helpful? Give feedback.
I'm confused.
No. When the auth id is equal to an empty string/null then this means that your rule allow only acces to non-authenticated users. If you want to grant access to only authenticated users you need to negate the operator - aka .
@request.auth.id != ""
.Are you sure that you are actually logged in? From your initial code sample you are creating a new PocketBase instance before sending the request and
pb.a…