mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
added querying by children
This commit is contained in:
@@ -4,6 +4,7 @@ const AndExp = require('./expressions/and');
|
||||
const OrExp = require('./expressions/or');
|
||||
const NotExp = require('./expressions/not');
|
||||
const ChildOfExp = require('./expressions/child_of');
|
||||
const ParentOfExp = require('./expressions/parent_of');
|
||||
const PropertyComparisonExp = require('./expressions/property_comparison');
|
||||
const AttributeExistsExp = require('./expressions/attribute_exists');
|
||||
const LabelComparisonExp = require('./expressions/label_comparison');
|
||||
@@ -56,6 +57,12 @@ function getExpression(tokens, parsingContext) {
|
||||
return new ChildOfExp(parseNoteProperty());
|
||||
}
|
||||
|
||||
if (tokens[i] === 'child') {
|
||||
i += 1;
|
||||
|
||||
return new ParentOfExp(parseNoteProperty());
|
||||
}
|
||||
|
||||
if (tokens[i] === 'title') {
|
||||
const propertyName = tokens[i];
|
||||
const operator = tokens[i + 1];
|
||||
|
||||
Reference in New Issue
Block a user