refactor(compiler-cli): allow query metadata to be omitted (#39707)
The metadata specification of queries allows for the boolean properties `first`, `descendants` and `static` to be missing, but the linker did not account for their omission. This fix is tested in subsequent commits that implement compilation of components, at which point this will be covered by the compliance tests. PR Close #39707
This commit is contained in:
parent
e79ce386fc
commit
935b2ff99f
|
@ -137,11 +137,11 @@ function toQueryMetadata<TExpression>(obj: AstObject<TExpression>): R3QueryMetad
|
|||
}
|
||||
return {
|
||||
propertyName: obj.getString('propertyName'),
|
||||
first: obj.getBoolean('first'),
|
||||
first: obj.has('first') ? obj.getBoolean('first') : false,
|
||||
predicate,
|
||||
descendants: obj.getBoolean('descendants'),
|
||||
descendants: obj.has('descendants') ? obj.getBoolean('descendants') : false,
|
||||
read: obj.has('read') ? obj.getOpaque('read') : null,
|
||||
static: obj.getBoolean('static'),
|
||||
static: obj.has('static') ? obj.getBoolean('static') : false,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue