Syn Query Library between 2 Reetool Instances

  1. My goal:
    1. I want to share Query Library between 2 instances. We are using self hosted instances and we have a enterprice license
  2. Issue:
    1. Only one query from library is synced. I have protected all apps and queries. The sync of apps works. But how can i trigger the query sync. All apps are already deployed via version control git. I have created for all apps new versions and deployed to prod.
    2. the queries are used in apps. And the apps that needs that queries for sure are not working in prod.
  3. Steps I've taken to troubleshoot:
    1. Read your manual, but found no solution
  4. Additional info: (Cloud or Self-hosted, Screenshots)
    Self hosted, enterprise license

This shows the 2 different instances query lib. As you can see only 2 queries are synced

It show additional that the i can use only prod env for query lib. But all my resources have stage and production

I have solved the problem. Thx to ai.

  1. The Git Workflow for the Query Library

Retool treats Query Library queries as standalone files (usually located in a queries/ or query_library/ folder in your repository), exactly like your apps.

  1. Create/Edit: You create a query in the Query Library on your source instance (e.g., Development).

  2. Commit & Push: Just like in the App editor, you will see a Source Control button in the Query Library (top right). Commit your changes and push them to your Git branch.

  3. Pull: On your target instance (e.g., Production), pull the changes from the branch. The new or updated query will now appear in that instance's Query Library.

Thanks for providing an update, @ralf.geisthardt!