What is the best way to access and modify object in Parent Workflow from Child Workflow

I’m using the workflowClient inside the child workflow to create a stub of Parent workflow and then calling the query method on the stub.

Any direct calls to any services are explicitly prohibited from the workflow code. WorkflowClient talks to Temporal gRPC endpoint directly, so it is also prohibited. See Workflow Implmentation Contstraints section of the documentation for the list of constraints inside the workflow code.