You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR bumps the CLI SDK to version 19.1.0 and introduces a new lib/commands/utils/query.ts utility that adds ergonomic --where, --sort-asc, --sort-desc, --limit, --offset, --cursor-after, and --cursor-before flags to every list command across all services, replacing the need to hand-craft raw Appwrite JSON query strings. A printQueryErrorHint helper is also added to parser.ts to surface a human-readable tip when the server returns query-related errors.
Confidence Score: 4/5
Safe to merge; all findings are P2 style/clarity issues with no logic bugs or security concerns.
The core buildQueries / parseWhereQuery logic is correct — operator precedence is right, numeric edge cases (Infinity/NaN) are handled, and the pre-serialized where values flow correctly into the SDK calls. Only minor issues were found: a misleading internal comment, an unexposed select field, and duplicative help text.
lib/commands/utils/query.ts — unexposed select field and misleading comment worth cleaning up before the pattern spreads.
Important Files Changed
Filename
Overview
lib/commands/utils/query.ts
New utility providing parseWhereQuery, buildQueries, and collectQueryValue helpers; logic is sound but select field is dead code and a comment is misleading
lib/parser.ts
Adds printQueryErrorHint to surface a human-readable tip when Appwrite returns query-related error messages; placed correctly in all three error-handling branches
lib/commands/services/databases.ts
All list commands wired to new buildQueries helper with --where/--sort-asc/--sort-desc/--limit/--offset/--cursor-* flags; --queries help text is redundant
lib/commands/services/tables-db.ts
Mirrors databases.ts changes for the TablesDB service; same patterns applied consistently
lib/commands/services/messaging.ts
List commands updated with ergonomic query flags; log/pagination-only endpoints correctly receive only --limit/--offset
lib/constants.ts
Version bumped from 19.0.0 to 19.1.0
install.sh
Download URL version bumped to 19.1.0
install.ps1
Windows download URLs bumped to 19.1.0 for both x64 and arm64
package.json
Version bumped to 19.1.0; tmp package override added to 0.2.5
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
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.
This PR contains updates to the SDK for version 19.1.0.
What's Changed
--where,--sort-asc,--sort-desc,--limit,--offset,--cursor-after, and--cursor-beforeflags on list commands across services--selectflag ondatabases list-documents,tablesdb list-rows, and other row/document list commands--queriesdescription to mark it as the legacy raw-JSON option, recommending the new flag-based filters for common cases--limiton list commands