Skip to content

Commit 353c062

Browse files
Simplify using
1 parent 196d369 commit 353c062

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

lib/query/woqlQuery.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ WOQLQuery.prototype.using = function(Collection, Subq) {
3838
if (!Collection || typeof Collection != 'string') {
3939
return this.parameterError('The first parameter to using must be a Collection ID (string)')
4040
}
41-
this.cursor['collection'] = this.jlt(Collection)
42-
//this.cursor['@context'] = '/api/prefixes/' + Collection
41+
this.cursor['collection'] = Collection
4342
return this.addSubQuery(Subq)
4443
}
4544

test/woqlJson/woqlExtraJson.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ module.exports={
3737
},
3838
usingJson:{
3939
"@type": "Using",
40-
"collection": {
41-
"@type": "xsd:string",
42-
"@value": "userName/dbName/local/commit/commitID"
43-
},
40+
"collection": "userName/dbName/local/commit/commitID",
4441
"query": {
4542
"@type": "Triple",
4643
"subject": {
@@ -62,10 +59,7 @@ module.exports={
6259
"and": [
6360
{
6461
"@type": "Using",
65-
"collection": {
66-
"@type": "xsd:string",
67-
"@value": "admin/dbName/local/commit/commitID_1"
68-
},
62+
"collection": "admin/dbName/local/commit/commitID_1",
6963
"query": {
7064
"@type": "Triple",
7165
"subject": {
@@ -84,10 +78,7 @@ module.exports={
8478
},
8579
{
8680
"@type": "Using",
87-
"collection": {
88-
"@type": "xsd:string",
89-
"@value": "admin/dbName/local/commit/commitID_2"
90-
},
81+
"collection": "admin/dbName/local/commit/commitID_2",
9182
"query": {
9283
"@type": "Not",
9384
"query": {

0 commit comments

Comments
 (0)