#Global not populating all fields when locale = *

24 messages · Page 1 of 1 (latest)

north junco
#

Hi,

I've got a global with an array field with a relation field inside.

If i query the global with a locale I get all data from the relation field as you can see in the image. However when i set * as locale I only get back the id's of the pages. I did not set any maxDepths on any collections.

I tried querying with &depth=x aswell but same result.

What am I missing?

Thanks!

midnight mantle
north junco
#

I would expect I also get back the data from the pages and not only the id since i did not set any depth

midnight mantle
north junco
#

at the bottom of the page

midnight mantle
#

thanks

#

I'm used to graphql

north junco
#

You can see in the images I posted along with the question that in the first image I only get back data from one locale

#

and in the second i get all data, from nl and en

#

but only the id of the page

#

and not the content

midnight mantle
#

have you tried all?

north junco
#

yee

#

same result

#

I wanted to use this query so I can create a locale switchter, extract the current page other locales uri's

midnight mantle
#

I see

#

ping the payload team?

#

this issue is old

north junco
#

Now i had to do the page query, get the id, and then do another query with the id and locale: *

#

the latter did return all content

#

this is a collection, not a global

#

Well, the thread will be bumped now right?

smoky geode
#

Yeah I wrote up a test that fails on a branch earlier today, so this is a confirmed issue. It’s kinda complex, but we will get it figured out and released

https://github.com/payloadcms/payload/compare/master...fix/nested-relationship-all-locales

GitHub

The React + TypeScript CMS. Payload is a free and open-source Headless CMS and Application Framework built with TypeScript, Node.js, React, and MongoDB. - Comparing master...fix/nested-relationship...