# Set a collection item to a different object and refer items inside of it

**URL:** <https://community.weweb.io/t/set-a-collection-item-to-a-different-object-and-refer-items-inside-of-it/2607>\
**Category:** How do I?\
**Tags:** binding, supabase\
**Created:** [May 5, 2023, 8:14am UTC](https://community.weweb.io/t/set-a-collection-item-to-a-different-object-and-refer-items-inside-of-it/2607 "2023-05-05T08:14:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MichaelLovell](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/michaellovell/32/2157_2.png) [@MichaelLovell](https://community.weweb.io/u/MichaelLovell)\
**Post date:** [May 5, 2023, 12:46pm UTC](https://community.weweb.io/t/set-a-collection-item-to-a-different-object-and-refer-items-inside-of-it/2607/3 "2023-05-05T12:46:52Z")

</div>

I believe it’s a known limitation by the weweb team, based on a previous post. [How can I filter by date from a collection where the date is part of an addon from Xano - #3 by MichaelLovell](https://community.weweb.io/t/how-can-i-filter-by-date-from-a-collection-where-the-date-is-part-of-an-addon-from-xano/2311/3)

Not seeing the data structure but making some assumptions, switch to the javascript formula and try something along the lines of this…

```auto
// Access the global variable containing the data Family
const items = collections['your-collection-id...de439c6947c9']

// Filter the items based on the 'family_member.id' property
const filteredItems = items.filter(item => {
    return item.family_member.id === user_id;
  });

  // Return the filtered items
return filteredItems;

```

---

_[View the full topic](https://community.weweb.io/t/set-a-collection-item-to-a-different-object-and-refer-items-inside-of-it/2607)._
