From 8b7878a543b0e8d421f98a515cd8659a5062344d Mon Sep 17 00:00:00 2001 From: Johannes Lichtenberger Date: Fri, 15 Dec 2023 20:06:06 +0100 Subject: [PATCH] Update jsoniq-tutorial.md --- docs/jsoniq-tutorial.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/jsoniq-tutorial.md b/docs/jsoniq-tutorial.md index 61fd1cf..b525e13 100644 --- a/docs/jsoniq-tutorial.md +++ b/docs/jsoniq-tutorial.md @@ -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`: @@ -79,7 +83,7 @@ jn:doc('mycol.jn','resource2',1) will retrieve the first revision of the resource: -``` +```json {"foo":true} ```