From ed550d7dadd3147caa961492d248b03742744990 Mon Sep 17 00:00:00 2001 From: Robin de Rooij Date: Fri, 21 Feb 2020 18:25:06 +0100 Subject: [PATCH] woql.js: add example for opt --- lib/woql.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/woql.js b/lib/woql.js index b0d7e354..b5887395 100644 --- a/lib/woql.js +++ b/lib/woql.js @@ -25,6 +25,8 @@ WOQL.when = function(Query, Update){ return new WOQLQuery().when(Query, Update); /** * The Query in the Optional argument is specified as optional * @param {object} query - WOQL Query object + * @example + * WOQL.opt(WOQL.triple("v:optionalSubject", "v:optionalObject", "v:optionalValue")) * @return {object} WOQLQuery */ WOQL.opt = function(query){ return new WOQLQuery().opt(query); }