Closed dwwoelfel closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/stopa/stopablog/4FqCKuKjmqMiSnhHNXXC9bnqYpeL
✅ Preview: Failed
Sets a flag when we persist the query that will cause OneGraph to fallback to the last successful response In case a persisted query returns an error.
This will prevent any rate-limit errors from taking down the blog.
A bit on how it works, if you're interested:
When a query is persisted with
fallbackOnError
set to true and the query executes successfully , then OneGraph will store the result in a google storage bucket. The bucket is set to auto-delete items after 30 days. If the persisted query executes later with an error in theerrors
field, then OneGraph will fetch the result of the successful execution from storage and return that instead.We add a little bit of data to the
extensions
field so that you can tell if the fallback was used and why. The result looks something like this: