Skip to content

Commit ed550d7

Browse files
committed
woql.js: add example for opt
1 parent 5dbaf12 commit ed550d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/woql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ WOQL.when = function(Query, Update){ return new WOQLQuery().when(Query, Update);
2525
/**
2626
* The Query in the Optional argument is specified as optional
2727
* @param {object} query - WOQL Query object
28+
* @example
29+
* WOQL.opt(WOQL.triple("v:optionalSubject", "v:optionalObject", "v:optionalValue"))
2830
* @return {object} WOQLQuery
2931
*/
3032
WOQL.opt = function(query){ return new WOQLQuery().opt(query); }

0 commit comments

Comments
 (0)