I have tried q.Match('fooIndex')
, where fooIndex is an index without field, but it returns a weird object which is not a list of documents
How does one get all the documents of a collection in FaunaDB?
583 views Asked by Samuel Nihoul At
1
Match('fooIndex')
returns aSetRef
. You would have toMap
,Paginate
the resultSetRef
and pass to aLambda
toGet
the documents.This should do to get 100 documents.
Map(Paginate(Match('fooIndex'),{size:100}),Lambda("x",Get(Var("x"))))