Hi Danielle, unfortunately it isn’t possible to query/filter by a Content Relationship field which is inside of a Group or a Slice. In order for this to work, the Content Relationship field needs to be at the top level of the Custom Type.
The other thing is that you can’t use the UID value for this. It only works with the document ID of the linked document (the linked subject in your case).
{
prismic {
allPublications(where: {subject: "XmZAAhMAACAARcwc"}) {
edges {
node {
subject {
_linkType
... on PRISMIC_Subject {
_meta {
id
}
}
}
}
}
}
}
}
I hope this helps you get this sorted out. Let me know if you have any more questions about this.