I have the following query for fetching all slices from a Course document and it seems to work well;
const cursoQuery = gql`
query cursoQuery($uid: String) {
allCursos(uid: $uid) {
edges {
node {
_meta {
id
uid
type
}
title
meta_title
meta_description
level
grade
slices1 {
... on CursoSlices1General_social_card {
type
variation {
... on CursoSlices1General_social_cardDefaultSlice {
primary {
title
description
image
}
}
}
}
}
slices {
... on CursoSlicesCourse_pricing_slice {
type
variation {
... on CursoSlicesCourse_pricing_sliceDefaultSlice {
primary {
title
description
}
}
}
}
... on CursoSlicesCourse_curriculum_slice {
type
variation {
... on CursoSlicesCourse_curriculum_sliceDefaultSlice {
primary {
title
}
}
}
}
... on CursoSlicesCourse_header_slice {
type
variation {
... on CursoSlicesCourse_header_sliceDefaultSlice {
primary {
title
description
modality
duration
time
frequency
image
}
}
}
}
}
}
}
}
}
It successfully returns something like this:
my problem is that when I pass it to the SliceZone I get a message saying that the the slice data is not there or might be in the wrong format.
i see that in multiple examples you do something like this
node{
body{
... on Blog_postBodyPost_text{
type
primary{
rich_text
}
}
but body
does not exist for me. Any idea on what I might be doing wrong? thanks!