Skip to content

Commit

Permalink
Update jsoniq-tutorial.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLichtenberger authored Dec 15, 2023
1 parent 1dd47d5 commit 8b7878a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/jsoniq-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ In order to query the contents we can open the database using the `jn:collection
jn:collection('mycol')
```

The quey result will be: `{"foo":true} ["bla","blubb"]`
The quey result will be:

```json
{"foo":true} ["bla","blubb"]
```

Of course you can query single documents either by looping over the result of `jn:collection` or via `jn:doc`:

Expand Down Expand Up @@ -79,7 +83,7 @@ jn:doc('mycol.jn','resource2',1)

will retrieve the first revision of the resource:

```
```json
{"foo":true}
```

Expand Down

0 comments on commit 8b7878a

Please sign in to comment.