Error when querying a slice with graphQuery

the answer is on this link
https://community.prismic.io/t/not-able-to-query-slice-machine-slices-with-graphquery/7030/23
the documentation should definitely be updated
thank you