mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add JSONiq support
This commit is contained in:
9
samples/JSONiq/detail.jq
Normal file
9
samples/JSONiq/detail.jq
Normal file
@@ -0,0 +1,9 @@
|
||||
(: Query for returning one database entry :)
|
||||
|
||||
import module namespace req = "http://www.28msec.com/modules/http-request";
|
||||
import module namespace catalog = "http://guide.com/catalog";
|
||||
|
||||
variable $id := (req:param-values("id"), "London")[1];
|
||||
variable $part := (req:param-values("part"), "main")[1];
|
||||
|
||||
catalog:get-data-by-key($id, $part)
|
||||
Reference in New Issue
Block a user