I am trying to retrieve all the custom-types "artwork" linked to a custom-type "collection".
This link exist through a content relonalship field edited in the "artwork" custom-types.
So, on collection/[uid] page (next.js project), I tried this:
Welcome to the Prismic community, and thanks for reaching out to us.
To query by Content Relationship, use the at predicate with the path my.[custom-type].[content-relationship-field] and the ID of the linked document. The ID is a randomly generated string: WNje3SUAAEGBu8bc. You can find it in the metadata of document's API result.
Give this a try, and let me know if you have any further questions.