> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sherloqdata.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Query

## Update query directly from your editor

You can now easily mark a query, right-click (or use a keyboard shortcut cmd/ctrl + shift + 7), and apply updates directly from the editor.

<Note>
  The queries list will be sorted based on the most recent interaction, ensuring that the updated query appears at the top of your list.
</Note>

<video autoPlay muted loop playsInline className="w-full aspect-video" src="https://mintcdn.com/sherloq-31da1dfe/14lmDNYXu1QSdw0y/images/update_query.mp4?fit=max&auto=format&n=14lmDNYXu1QSdw0y&q=85&s=ae64450506ba531e05cd532e8b3e92dc" data-path="images/update_query.mp4" />

## Update query from Sherloq platform

To update an existing query, click on "Edit Query" (or enter the query profile)

<img width="350" alt="edit query" src="https://mintcdn.com/sherloq-31da1dfe/tD9AIrHANoNaF5Xm/images/edit_query.png?fit=max&auto=format&n=tD9AIrHANoNaF5Xm&q=85&s=7eef376399f2aa309e1b62b75ab04e47" data-path="images/edit_query.png" />

Now, make your changes, and then click "Save."

<img width="350" alt="edit query save changes" src="https://mintcdn.com/sherloq-31da1dfe/tD9AIrHANoNaF5Xm/images/edit_query_save_changes.png?fit=max&auto=format&n=tD9AIrHANoNaF5Xm&q=85&s=bf992828d595d21f0206ba487e27ece5" data-path="images/edit_query_save_changes.png" />

This will create a new version of the query.
<br /> At the top of the code box, you'll see who created the version and when. This provides information about each version, allowing you to manage all versions, including adding collaborative notes, viewing and comparing differences between versions, and selecting the version you want to work with.

<img width="350" alt="query versions" src="https://mintcdn.com/sherloq-31da1dfe/ZD1BvcX8WQjPZQn2/images/query_versions.png?fit=max&auto=format&n=ZD1BvcX8WQjPZQn2&q=85&s=744204a821a2d2e262179533925d969d" data-path="images/query_versions.png" />
