Hello. I need to pull two different document types in the same query (preferably). For example:
However, this is returning nothing, i.e.,
I've tried querying them separately and merging the results using Object.assign, spread operator, etc., to no avail. What's the solution?
Thanks in advance!
Welcome to the Prismic community.
You certainly can query to custom types in the same query and here is the query you need to pass:
And I highly recommend you test your query in the REST API browser before writing your code.
To learn more you can check this article.
Please let me know if you have any further inquires,
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.