Sorry if I’m missing something obvious, but I’m having a bit of trouble sending refs back and forth between my backend and frontend. When I paginate I get back something like this:
Hi @jescowuester. This is very related to question such as some issues raised on our driver such as these ones:
Instead of passing the ref to your frontend you want to get the id out of that ref and instead construct the ref again in your backend once your frontend provides you with the id.
Ref(Collection("..."), "287890180395762177")
Not ideal, I know, we’re hoping to make it easier to serialize/deserialize these references in the future. A ticket has been made internally.
The parseJSON function is now exported from the JS driver. After you receive the response from your own API, you can run pass it into parseJSON to transform the result into the Fauna values.