Carl Filip Matre
Developer in Helseoversikt AS
Visit Carl Filip Matre's profile
*[_type == 'movie' && count((castMembers[].person._ref)[@ in $ids]) > 0].title
{
ids: ['person_chris-pratt', 'person_noomi-rapace']
}
@cfmatre
originally came up with this brilliant method for matching an array of items against another array in GROQ but, unfortunately, it was lost to Slack history. Here, I've adapted the query to work with the Movies DB to provide access to all members of the community!
Developer in Helseoversikt AS
Community Engineer at Sanity.io
Use the renderDefault method to show or hide fields.
Go to Conditionally show a field based off of a value inside of a referenceThis will allow you to display an array of references as a checklist from which you can multi-select.
Go to V3 version of Display an array of references as a checklistPopulate your list options in a string schema using an external API
Go to Asynchronous List Options ComponentUse the renderDefault function to easily control your available array options.
Go to Filter Array Options Based on the Current User Role