Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Jun 27, 2024
1 parent 550d97a commit b6157e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Options:
and permissions are controlled by ACP (Access Control Policy).

-e, --encrypt
Encrypt flag specified if the document needs to be encrypted. If set DefraDB will generate a
Encrypt flag specified if the document needs to be encrypted. If set, DefraDB will generate a
symmetric key for encryption using AES-GCM.

Example: create from string:
Expand All @@ -39,7 +39,7 @@ defradb client collection create [-i --identity] [-e --encrypt] <document> [flag
### Options

```
-e, --encrypt Encryption key used to encrypt/decrypt the document
-e, --encrypt Flag to enable encryption of the document
-f, --file string File containing document(s)
-h, --help help for create
```
Expand Down
10 changes: 10 additions & 0 deletions docs/website/references/cli/defradb_client_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Send a DefraDB GraphQL query request

Send a DefraDB GraphQL query request to the database.

Options:
-i, --identity
Marks the document as private and set the identity as the owner. The access to the document
and permissions are controlled by ACP (Access Control Policy).

-e, --encrypt
Encrypt flag specified if the document needs to be encrypted. If set, DefraDB will generate a
symmetric key for encryption using AES-GCM.

A query request can be sent as a single argument. Example command:
defradb client query 'query { ... }'

Expand All @@ -30,6 +39,7 @@ defradb client query [-i --identity] [request] [flags]
### Options

```
-e, --encrypt Flag to enable encryption of the document
-f, --file string File containing the query request
-h, --help help for query
```
Expand Down

0 comments on commit b6157e9

Please sign in to comment.