M Al-Haroon
 · Managing director at Payspin

Removing a Specific Reference from a Firebase List Field

Actions & Logic

Hello FlutterFlow community,

I have a collection called Circles, where each document contains a field named generatedUsers. This field stores a list of references pointing to a subcollection.

My Goal:
I need to delete a specific reference from the generatedUsers list using the Update Document action.

The Problem:
When I try to use "Remove from Set", I can’t access the "List Contains Item" operator to target the exact reference I want to remove.

Question:
How can I remove a specific reference from the generatedUsers list? Is there a workaround using custom code or a different Firestore action?

Thanks in advance for your help!

What have you tried so far?

What I’ve Tried:

  • I have the full reference path (e.g., "circles/c075/circleUsers/c0753"), but FlutterFlow’s UI doesn’t seem to support direct list manipulation for references.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
4 replies