Relationship field other than `id`

default discord avatar
pooledge
3 weeks ago
1

Typical use case would be getting a

slug

field for a

page

being a relation for navigation items, without all the page content which comes with

depth=1

, in order to build a proper

href

OR



should I just switch to GraphQL queries for this?

  • discord user avatar
    jarrod_not_jared
    Payload Team
    3 weeks ago

    I think graphql really shines for things like this, I think that would be a solid choice.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.