Document saved queries and the Query Assistant#5074
Open
shannonbradshaw wants to merge 5 commits into
Open
Conversation
Add two sections to the in-app query editor page (query-data.md): saving and reusing MQL queries, and the Query Assistant (Beta), which writes SQL and MQL queries from a plain-language description. Align the data overview to use the product name and note that saving is MQL-only. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
katiepeters
reviewed
May 26, 2026
|
|
||
| ## Save and reuse queries | ||
|
|
||
| You can save MQL queries for reuse. To save a query, switch to MQL mode, click **Save query**, and give it a name. It appears under the **Saved** tab in the editor sidebar, next to a **Recent** tab of your recent queries. Saved queries are available to your whole organization. Saving is not available for SQL queries. |
Member
There was a problem hiding this comment.
Do we say anywhere that saves queries can be used in TabularDataByMQL? The name of the saved query is what queryPrefixName refers to here
Collaborator
Author
There was a problem hiding this comment.
Nevermind. Figured it out. Working on another commit.
Per review feedback: a saved query can be run from the data client by passing its name as query_prefix_name to TabularDataByMQL, which prepends the saved query to any stages you provide. Add a "Reuse a saved query" section with Python and Go examples to query-data-from-code.md, and a cross-link from the saved-queries section of query-data.md. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
@katiepeters can you take a look at this again? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Documents two existing features of the in-app query editor that the data section did not cover.
On
data/query-data.md, after the MQL section:On
data/overview.md, aligns the existing "Query and explore" sentence to the product name (Query Assistant, Beta) and notes that saving is MQL-only.Verification
All claims verified against the app source (
app/ui/src/routes/(auth-required)/data/query/andapp/data/feature_models.go):createSavedQueryRPC accepts only MQL, so saving is MQL-only.BETAbadge and its inference path handles both SQL and MQL.Local checks pass: prettier, markdownlint, vale (0 errors/warnings/suggestions), and
make build-prod.🤖 Generated with Claude Code