All queries come with version history, where you can compare and revert to previous query versions seamlessly. You can access version history from the query editor toolbar.
History LengthEveryone gets 30 days by default, you can upgrade your plan for longer history access.
Saving and Managing Versions
A new version is created each time you save or run your query. The first time you save a query — whether it is forked or freshly created — an initial version is committed to the history. If you’ve forked a query, the version history starts fresh; you won’t have access to the original query’s edit history.
Each subsequent run saves a new version automatically. If you leave the page without saving or running, any unsaved changes will be lost. You can also edit the metadata of any saved version — such as adding a title or description — to make it easier to identify later.
Comparing and Reverting Versions
You can compare diffs between any two versions to see exactly what changed, and revert to a previous version if needed. The reverted query is saved as a new version in the history, so you never lose your current work.