In the https://your-repository-name.prismic.io/api/v2 (yes, i have put in our repo name), I am querying "everything". I have a custom type of "highlights", which has a field called "title". Putting [at(my.highlights.title, "DNA")]
results in an error, [function at(..)] unexpected field 'my.highlights.title' on line: 1 col:6 in query '[[at(my.highlights.title, "DNA")]]
with the arrow pointing at the m
in my
. This is the json:
{
"slice_type": "highlights",
"slice_label": null,
"items": [],
"primary": {
"colour_theme": "Primary (bg: indigo, text: white)",
"title": [
{
"type": "heading3",
"text": "Once your DNA test kit arrives...",
"spans": []
}
],
blah....
Am I using the right structure of the query?
Thanks!