I have a class "posts" which has 10 instances. How to fetch and list all instances in this class using fauna-java library without using Paginate method?
I tried something like follows
client.query(Get(Class("posts")))
But couldn't able to achieve this.
The Paginate function is present in Fauna to address requesting sets of data. In your case you can play with the pagesize argument and increase it up to a point. Keep in mind that after a certain size you will want to use the paginate function to traverse the larger set.
The simple version of paginate with pages size set would look something like this:
Paginate(Match(Index("customer_id_filter"))).size(Value(pageSize));
A more robust example of using paginate can be found here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With