Product
Listing Allies for a Given Account
3 min
status deployed summary the core value for a seller is the ability to gain access to an account they are interested in they want to see a list of the allies they are connected with who have a given account design problem currently, to support the invite flow, the concept of an ally object has a separate invitee and inviter however, a seller can be either the invitee or the inviter while it's easy to query for the subcollection of ally objects, right now, the ally's reference document can be either in the invitee or userinviter field one idea is to have a custom function with three parameters invitee field userinviter field authenticater user the custom functions returns whatever != authenticated user status this looks like it's solved
