#Relationship field returning just id

1 messages · Page 1 of 1 (latest)

fallen yew
#

In this global page, I get just this from the news collection

#

In this collection, I get all the data

#

This is the field for news:

            {
              name: 'homeNew',
              type: 'relationship',
              relationTo: ['news', 'activities', 'calls'],
              label: 'Seleccionar noticia',
              required: true,
            },

this is the field for categories:

{
      name: 'projectsCategories',
      type: 'relationship',
      relationTo: 'categories',
      label: 'Categorías',
      hasMany: true,
      index: true,
      admin: {
        position: 'sidebar',
      },
    },
runic geode
#

@fallen yew use the depth parameter on your request to populate relationships beyond their ids