Querying a grouped collection within a grouped collection

I would like to query a collection group within a collection group. I can successfully get the root level information for the nested collection group but cannot get the 'data' for nested collection group

    graphQuery: `{
      brand {
        label
        link {
          ...on brand {
            ...brandFields
          }
        }
        subcategories {
          category {
            ...on silhouette {
              ...silhouetteFields
            }
            ...on model {
              ...modelFields
            }
          }
        }
      }
    }`

I assume the collection in this case is another Slice with a Content relationship field. Here you can see an example of how to achieve this

Instead of just calling all the fields in the silhouette or model custom types, you need to enter the slices node, if the fields are in a Slice of coure. For example:

    graphQuery: `{
  brand {
    label
    link {
      ... on brand {
        ...brandFields
      }
    }
    subcategories {
      category {
        ... on model {
          slices {
            ... on contact_slice {
              variation {
                ... on default {
                  items {
                    name
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Hi Pau, thanks for the help

The fields are not in a slice. Its a custom document with no slices. The slices will be added to another custom document. Is there a way to get the data from the document?

In that case you can use the ...customTypeFields syntax. So if your linked document is called post you can do:

      ... on post {
        ...postFields
      }