porl
(Paul N)
1
Just trying the REST API and I'm getting a 400 for the following:
https://myidentifier.cdn.prismic.io/api/v2/documents/search?q=[[at(my.post.slug,"test")]]
The error message is:
unexpected field 'my.post.slug' on line:1 col:6 in query '[[at(my.post.slug,"my-post-slug"
The slug
field is UID
type and the item has been published.
The query at(document.type, 'post')
returns all documents correctly.
Any help appreciated!
Phil
(Phil Snow)
4
Hi Paul,
You will just need to change slug
to uid
and it will work: my.post.uid
. You can change the display name of the UID field but not the API ID.
Thanks.
1 Like
thanks for the awesome information.
2 Likes
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
6
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
thanks my issue has been fixed.