I’m trying to emulate a
where id in (x,y,z) in GraphQL but I’m getting no results back.
I’ve created a custom query as such
timeSlotsByIds(ids: [ID!]): [TimeSlot] @resolver(name: "slots_by_ids", paginated: true)
and created an index with
_id as the key.
my custom function is
Query( Lambda( ["ids", "foo", "bar", "baz"], Paginate(Match(Index("slot_by_id"), Var("ids"))) ) )
Now I understand there is no
_id field on the document, but I wasn’t sure how to index the ref part for it.
Thanks for any pointers!