London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
You have to create an anonyme object, and then create your object from that when you get the result back.
Hi Jonas,
thanks for your reply. I've tried using an anonymous type, but the entire Platforms still gets transfered over the wire instead of the individual fields.
e.g. when using anonymous type the request for the projection looks like this:
"fields":["___types","Code$$string","Platforms$$nested"]
Thanks
Danie
Hi,
I would like to project from a nested list to a list of complex classes in Find. The projection code compiles and everything seems to work.
But when I examine the response directly from Find, the entire object is returned from Find instead of the individual fields.
Assuming the Game class gets indexed:
I would like to project only the "Code" from Game and the "Id" and "Name" from Platform.
e.g.
From the documentation its probably a limitation. But does anyone know if the above is possible in another way?
Thanks,
Danie