Skip to content

Commit 4f6f9c2

Browse files
fixed WOQL.as and WOQL.path docs #140
2 parents c6ce308 + 01d5923 commit 4f6f9c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api/woql.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Imports the value identified by Source to a Target variable
375375

376376
**Example**
377377
```javascript
378-
WOQL.as("first var", "v:First_Var",{} "string").as("second var", "v:Second_Var")
378+
WOQL.as("first var", "v:First_Var", "string").as("second var", "v:Second_Var")
379379
WOQL.as(["first var", "v:First_Var", "string"], ["second var", "v:Second_Var"])
380380
```
381381

@@ -1118,7 +1118,7 @@ Performs a path regular expression match on the graph
11181118
**Example**
11191119
```javascript
11201120
let [person, grand_uncle, lineage] = vars("person", "grand uncle", "lineage")
1121-
path(person, ((father|mother) {2,2}), brother), grand_uncle, lineage)
1121+
path(person, "((father|mother) {2,2}), brother)", grand_uncle, lineage)
11221122
```
11231123

11241124
## size

lib/woql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ WOQL.put = function (varsToExp, query, fileResource) {
346346
* @param {string} [type] - type to cast value to string|number etc...
347347
* @returns {WOQLQuery}
348348
* @example
349-
* WOQL.as("first var", "v:First_Var",{} "string").as("second var", "v:Second_Var")
349+
* WOQL.as("first var", "v:First_Var", "string").as("second var", "v:Second_Var")
350350
* WOQL.as(["first var", "v:First_Var", "string"], ["second var", "v:Second_Var"])
351351
*/
352352

@@ -1031,7 +1031,7 @@ WOQL.true = function () {
10311031
* @returns {WOQLQuery} - A WOQLQuery which contains the path regular expression matching expression
10321032
* @example
10331033
* let [person, grand_uncle, lineage] = vars("person", "grand uncle", "lineage")
1034-
* path(person, ((father|mother) {2,2}), brother), grand_uncle, lineage)
1034+
* path(person, "((father|mother) {2,2}), brother)", grand_uncle, lineage)
10351035
*/
10361036
WOQL.path = function (subject, pattern, object, resultVarName) {
10371037
return new WOQLQuery().path(subject, pattern, object, resultVarName);

0 commit comments

Comments
 (0)