What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)
In our Code Component, I am trying to query our Plasmic CMS instance for any entries with a list of references.
For example we have a video model. On that model we have a list of references to sports, so for a specific sport page we are trying to make an api call to our video model, that has any references to that specific sport in it’s sports ref array.
What have you tried so far? (please link relevant docs and other forum posts)
There is no documentation on how to query an array of refs, or query refs at all. I’ve tried the following queries in my where
object. the only thing I could find is this: How to query the CMS API by a field? - #2 by yang
{
offset: 0,
limit: 6,
where: {
sports: [sport-system-Id]
}
}
{
offset: 0,
limit: 6,
where: {
sports: [{ sport: sport-system-Id }]
}
}
{
offset: 0,
limit: 6,
where: {
sports: {
"$in": [sport-system-Id]
}
}
}
I feel like i’m just guessing at this point with the lack of documentation for Plasmic CMS
Relevant links:
- My project: Plasmic