Skip to content

Path must be optional #74

@GavinMendelGleason

Description

@GavinMendelGleason

For performance and convenience reasons we need path to be optional.

Not sure precisely what the code is, but something like this:

WOQLQuery.prototype.path = function(Subject, Pattern, Object, Path) {
    if (this.cursor['@type']) this.wrapCursorWithAnd()
    this.cursor['@type'] = 'Path'
    this.cursor['subject'] = this.cleanSubject(Subject)
    if (typeof Pattern == 'string') Pattern = this.compilePathPattern(Pattern)
    this.cursor['pattern'] = Pattern
    this.cursor['object'] = this.cleanObject(Object)
    if(typeof Path != 'undefined'){
        this.cursor['path'] = this.varj(Path)
    }
    return this
}

Metadata

Metadata

Labels

triageissue to be triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions