scott3
(Scott Mebberson)
February 2, 2021, 11:32pm
1
When I run the following query predicates in JavaScript, everything works fine:
predicates [
'[at(document.type, "member_article")]',
'[at(my.member_article.service_category, "YAepwBMAACcAsa1Q")]'
]
However, when the same thing is run in the API UI, it errors:
Any ideas?
Priyanka
(Priyanka Maheshwari)
February 3, 2021, 11:21am
3
Hello Scott,
Thanks for reaching out to us.
Your javascript query is correct but, It works differently with the REST API. It would be best if you put it like that:
[[at(document.type,"blog_post")]]
[[at(my.blog_post.category_link,"your-category-id")]]
Here is the document link.
Let me know if you have any other doubt.
Thanks,
Priyanka
scott3
(Scott Mebberson)
February 3, 2021, 10:31pm
4
Hmm, has something changed? I tried the exact same thing just now and it worked fine.
Other than the error, it looks identical to the one above and it works fine?
Priyanka
(Priyanka Maheshwari)
February 11, 2021, 1:57pm
5
Hello Scott,
I'm glad that It's working. Nothing has changed from our side.
Don't hesitate to reach out to us if you have any question.
Priyanka
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
February 18, 2021, 10:33am
6
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.