class FullName {
forename: string = '';
surname: string = '';
}
class Something {
name: FullName = new FullName();
}
database.query(Something)
.filter({'name.surname': 'Meier'})
.patchOne({'name.forename': 'Klaus'})
filter() works fine
patchOne() doesn't
error TS2345: Argument of type '{ 'name.forename': string; }' is not assignable to parameter of type 'ChangesInterface<Something> | Partial<Something>'.
Object literal may only specify known properties, and ''name.forename'' does not exist in type 'ChangesInterface<Something> | Partial<Something>'.
59 .patchOne({'name.forename': 'Klaus'});
Example
filter() works fine patchOne() doesn't