# Pages field and uuids

**URL:** <https://forum.getkirby.com/t/pages-field-and-uuids/26663>\
**Category:** Questions\
**Tags:** v3\
**Created:** [October 6, 2022, 7:28pm UTC](https://forum.getkirby.com/t/pages-field-and-uuids/26663 "2022-10-06T19:28:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [October 6, 2022, 7:28pm UTC](https://forum.getkirby.com/t/pages-field-and-uuids/26663/1 "2022-10-06T19:28:56Z")

</div>

On “news” pages, I can select a related movie with a Pages field named “movie”, stored as uuids as I use Kirby 3.8  
On each “movie” page I want to list news about it. How do I query them with uuids?  
I tried `page("news")->children()->filterBy( 'movie', $page->uuid() )` but it doesn’t return anything. What is the right way to achieve this in 3.8?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 6, 2022, 7:40pm UTC](https://forum.getkirby.com/t/pages-field-and-uuids/26663/2 "2022-10-06T19:40:30Z")

</div>

> [@Malvese](#):
>
> `page("news")->children()->filterBy( 'movie', $page->uuid() )`

```auto
$news = page("news")->children()->filterBy( 'movie', $page->uuid(), '-' );

```

or

```auto
$news = page("news")->children()->filter(fn ($child) => $child->movie()->toPages()->has($page)); 

```

---

<div class="post-metadata">

**Author:** ![Malvese](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/malvese/32/12375_2.png) [@Malvese](https://forum.getkirby.com/u/Malvese)\
**Post date:** [October 6, 2022, 7:41pm UTC](https://forum.getkirby.com/t/pages-field-and-uuids/26663/3 "2022-10-06T19:41:36Z")

</div>

Ah, I forgot the separator as Pages is a multiple value field!  
Thank you @texnixe !
