Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TabularDataByMQL documentation #837

Merged
merged 3 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/viam/app/data_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ async def tabular_data_by_mql(
Args:
organization_id (str): The ID of the organization that owns the data.
You can obtain your organization ID from the Viam app's organization settings page.
query (Union[List[bytes], List[Dict[str, Any]]]): The MQL query to run as a list of BSON queries.
Note: Support for bytes will be removed in the future, so using a dictionary is preferred.
query (Union[List[bytes], List[Dict[str, Any]]]): "The MQL query to run, as a list of MongoDB aggregation pipeline stages.
Note: Each stage can be provided as either a dictionary or raw BSON bytes, but support for bytes will be removed in the future,
so using a dictionary is preferred.

Returns:
List[Dict[str, Union[ValueTypes, datetime]]]: An array of decoded BSON data objects.
Expand Down