Skip to content

Commit 5d1a1ae

Browse files
author
Ghislain Fourny
committed
Fix example.
1 parent 26c8aa5 commit 5d1a1ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/jsoniq/sequence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ class SequenceOfItems:
1010
1111
This is an example of how you can simply define a schema and wrap your query in a validate expression:
1212
13-
declare type mytype as {
13+
declare type local:mytype as {
1414
"product" : "string",
1515
"store-number" : "int",
1616
"quantity" : "decimal"
1717
};
18-
validate type mytype* {
18+
validate type local:mytype* {
1919
for $product in json-lines("http://rumbledb.org/samples/products-small.json", 10)
2020
where $product.quantity ge 995
2121
return $product

0 commit comments

Comments
 (0)