Perform aggregate operations on embedded objects

Given the following example models:

public final class Parent: Object, ObjectKeyIdentifiable, MinMaxType {
    ....
    ....
    @Persisted public var child: Child?
}

public final class Child: EmbeddedObject, ObjectKeyIdentifiable, MinMaxType {
    @Persisted public var age: Double
}

I can’t seem to be able to perform aggregate operations on the age property of the EmbeddedObject.

let avgAges = realm.object(ofType: Parent.self).average(of: \.child?.age) 

The above code results in the following runtime error: Property ‘child.age’ not found in object of type ‘Parent’

Is this a limitation of Realm swift or am I doing something wrong?

Any clarification would be appreciated.

Thanks in advance!