List of terms
Problem
You want to search an index using a list of terms but Match
only finds exact matches.
Solution
{
data: [
{
ref: Ref(Collection("spells"), "181388642046968320"),
ts: 1627085181220000,
data: {
name: 'Fire Beak',
element: [ 'air', 'fire' ],
spellbook: Ref(Collection("spellbooks"), "181388642139243008")
}
},
{
ref: Ref(Collection("spells"), "181388642071085568"),
ts: 1627085181220000,
data: {
name: "Water Dragon's Claw",
element: [ 'water', 'fire' ],
spellbook: Ref(Collection("spellbooks"), "181388642139243008")
}
},
{
ref: Ref(Collection("spells"), "181388642088911360"),
ts: 1627085181220000,
data: { name: "Hippo's Wallow", element: [ 'water', 'earth' ] }
},
{
ref: Ref(Collection("spells"), "181388642581742080"),
ts: 1627085181220000,
data: { name: "Mountain's Thunder", element: 'air', cost: 15 }
}
]
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!