Missing attributes from linked collections

I have a singleton, with a linkedCollection field.

Querying for this collection will display all the expected data.

For example:

     "entries": [
          {
               "label": "Diamond",
               "icon": {
                    "path": "diamond.svg"
               }
          },

However, when querying the parent singleton, the image field is missing:

     "myLinkedCollection" [
          {
               "_id": "xxxxxxxxxxxxx",
               "link": "myLinkedCollection",
               "display": "Diamond"
          }
     ],

Also, I can see that I don’t find the same “label” attribute…

Are the linked collections not displayed when the parent is queried?

how do you query the singleton?

Add "populate":1 to your query.

2 Likes

I use /api/singletons/get/{singletonname}

Thank you so much!!!