Confused over why API creates two types of things and repeating group not working

Hi,

I have an external API call called “Display All Products” which, when called, provides a JSON response that has an array of products under Items:

{
  "Count": 2,
  "Items": [
      {
          "sku": {
              "S": "00000001"
          },
          "name": {
              "S": "Product X"
          }
      },
      {
          "sku": {
              "S": "00000002"
          },
          "name": {
              "S": "Product Y"
          }
      }
  ]
}

The Bubble API Connector connects to the API, and I have the returned values as:

Count: number
Items (list): Display All Products Item
    sku: text
    name: text

Now, when I create a Group and set the “Type of content”, I have two options:

Display All Product
Display All Products Item

I am confused about why I have these two types and why the first type has had the “s” dropped from it when the API explicitly states Products.

This leads to me not understanding how to set the Data source for a repeating group that is nested within the earlier created Group as I keep getting an expression error.

I want to get the repeating group to display all the products listed from the API call.

Thank you in advance for any guidance and pointers.

Then the RG datasource needs to be Display All Products Item (which is the list of items)

2 Likes

Thank you! That fixed it for me.