You are not logged in.
Pages: 1
Is it possible with mormot to locate records in a mongodb collection across fields that are stored as variant?
Offline
Thanks Ab for the answer. What section of the doc is this information in? I found something on selfTest but accessing Tmongoclient directly and not using the mormot Framework.
In this collection:
{"_id":{"$numberInt":"2"},"Name":"Fabio T de oliveira","Type":{"$numberInt":"0"},"DataPerson":{"CPF":"001.111.111-11","RG":""}}
I can't select from the CPF field of the DataPerson object.
Offline
Hi ab,
I managed to do it using the finddocs method with direct access to a collection but I wonder if there is a way to do this at the ORM level. Using mormotDDD classes or even TSQLRecord?
Last edited by fabiovip2019 (2019-11-27 17:05:00)
Offline
Pages: 1