You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case where formatting is set to simple and was surprised to see data not iterating as documented when using client.paginate(fql...). Maybe just an update to the documentation on the formatting requirement would go a long way
The text was updated successfully, but these errors were encountered:
Hi @Lepozepo. The driver needs the tagged format so that the response is known to be encoded as a Set. This might be a good argument for accepting a PageLike interface, i.e. working with any response that is an object which contains a data field that is an array with an optional after field which is a string. We could also throw an error if you try to use Client.paginate when the client is configured with a different format.
Can I ask, for what purpose are you changing the format. The default tagged format is meant to be the default in most cases. We'd love to hear more about how you are using the driver.
@ptpaterson it's definitely an edge case, I have a desktop client app built for Fauna that I use heavily. For that particular scenario I found it easier to have non-tagged responses for rendering. It just threw me off, definitely agree that the tagged format should be the go to.
I have a case where formatting is set to simple and was surprised to see data not iterating as documented when using
client.paginate(fql...)
. Maybe just an update to the documentation on the formatting requirement would go a long wayThe text was updated successfully, but these errors were encountered: