Hi @Rishi_Kataria and welcome!
You want to check if the published
field equals a value, so use the Index terms
, not values
.
CreateIndex({
name: "blogs_get_published",
source: Collection("blogs"),
terms: [
{ field: ["data", "published"] }
]
})
Map(
Paginate(Match(Index('blogs_get_published'), true)),
Lambda("ref", Get(Var("ref")))
)
I was just commenting on equalities and inequalities, so I will share that, too