My question is similar to this. I'm trying to create a Case and process few child task records from a REST API Call.
REST API Endpoint POC:
But when I executed this as below, I get error System.QueryException: Aggregate query has too many rows for direct assignment, use FOR loop\n\nExternal entry point in above highlighted line which is a System.debug(). If I remove the debug line no errors.
Also note it doesn't go inside the for loop. Any ideas how to deserialize this and create the SObject with it's related records? Is it not possible to follow this approach to receive related records?
Any thoughts/suggestions are much appreciated. Thanks!