//give me instances of TestMapJson, which have at least one child with the age of 8
def result = TestMapJson.withCriteria {
pgJsonHasFieldValue 'data', 'childs.age', '8'
}
//i would expect instance1 and instance2 to be returned
//give me instances of TestMapJson, which have at least one child with the age of 8 which is named Peter
def result = TestMapJson.withCriteria {
pgJsonHasFieldValue 'data', 'childs.age', '8'
pgJsonHasFieldValue 'data', 'childs.name', 'Peter'
}
//i would expect instance1 to be returned
Is there a use case for this or am I trying to do stuff that is not implemented?
I may be to stupid to read between the lines in the docs, but i cant get the following to work:
Is there a use case for this or am I trying to do stuff that is not implemented?