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?
617 views Asked by Samuel Nihoul At
1
Match('fooIndex')returns aSetRef. You would have toMap,Paginatethe resultSetRefand pass to aLambdatoGetthe documents.This should do to get 100 documents.
Map(Paginate(Match('fooIndex'),{size:100}),Lambda("x",Get(Var("x"))))