CMS Plasmic API nested ref in list type field

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

i have created 2 CMS model “header” and “headerNav”

in “header” model we have a field of “list” type and its nested field type is “ref” with model “headerNav”

now i am trying to get data of “header” via CMS api and i am getting ids for headerNav like this

[
    {
        "navOption": "qnkP1b7UgXGteAs2fFsRab"
    },
    {
        "navOption": "up9wN4JKinRBm3xzf8otcx"
    }
]

how can i get complete object for navOption?

One more issue i am facing, if i do any change in my model data ( add or update ), publish that and try to check that locally
i am always getting old data, mostly the data i have added first time only.

 const res = await fetch(`${PLASMIC_CMS_API_URL}/${PLASMIC_CMS_ID}/tables/${tableId}/query`, {
      method: "GET",
      headers: {
        "x-plasmic-api-cms-tokens": `${PLASMIC_CMS_ID}:${PLASMIC_CMS_PUBLIC_TOKEN}`,
      },
    });

This is how i am fetching data

Hi @mar_tech-stadium, our current documentation for the query API doesn’t have this information yet, but you can set q.fields to return resolved refs. q.fields is an array of strings that defaults to [“*”], but you can tell it to expand the navOption like ["*","navOption.*"].

Please make sure to click the “Publish” button in the CMS after you edit data.

Okay Thanks, Working now

We were clicking “Publish” button in the CMS.

it was api cache issue on our side, that is also resovled now.