Skip to content

Commit 6976245

Browse files
authored
Merge pull request #18 from rrooij/dev
woql.js: add example for opt
2 parents 26502a2 + ed550d7 commit 6976245

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)