From 868e9cddea60d317b99dd231a5d958f4b1f794ea Mon Sep 17 00:00:00 2001 From: Donny Peeters Date: Fri, 20 Oct 2023 10:11:10 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00ccfd3..bd2af87 100644 --- a/README.md +++ b/README.md @@ -112,14 +112,14 @@ Don't hesitate to add your own examples! ### Using the CLI for querying This package also comes with an easy CLI tool to query XTDB. -To query XTDB using a plain query you can run +Again, set the `XTDB_URI` variable in your environment first and you will be able to query XTDB as follows: ```bash $ echo '{:query {:find [(pull ?e [*])] :where [[ ?e :name "fred" ]]}}' | python -m xtdb [[{"name": "fred", "xt/id": "123"}]] ``` -To use a query file the command can be modified to the following: +To use a query from a file, run: ```bash $ cat query.txt