Skip to content

Commit

Permalink
docs: update cli (client view add)
Browse files Browse the repository at this point in the history
  • Loading branch information
najeal authored and fredcarle committed Feb 11, 2025
1 parent a925dd9 commit e3a3bd3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/website/references/cli/defradb_client_view_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,29 @@ Add new view

Add new database view.

Example: add from an argument string:
defradb client view add 'Foo { name, ...}' 'type Foo { ... }' '{"lenses": [...'
Example: add from string flags:
defradb client view add --query 'Foo { name, ...}' --sdl 'type Foo { ... }' --lens '{"lenses": [...'
Example: add from file flags:
defradb client view add --query-file /path/to/query --sdl-file /path/to/sdl --lens-file /path/to/lens

Flag pairs <key>/<key>-file are mutually exclusive.

Learn more about the DefraDB GraphQL Schema Language on https://docs.source.network.

```
defradb client view add [query] [sdl] [transform] [flags]
defradb client view add [flags]
```

### Options

```
-f, --file string Lens configuration file
-h, --help help for add
--lens string Lens configuration
--lens-file string Lens configuration file
--query string Query
--query-file string Query file
--sdl string SDL
--sdl-file string SDL file
-h, --help help for add
```

### Options inherited from parent commands
Expand Down

0 comments on commit e3a3bd3

Please sign in to comment.