jamesfredley commented on issue #14399:
URL: https://github.com/apache/grails-core/issues/14399#issuecomment-5978778895

   A `save(Company company)` action already parses the request body into 
`company`. After that, `request.JSON` is empty. The action can take the domain 
argument or read `request.JSON`, not both. That is in [command 
objects](https://github.com/apache/grails-core/blob/v8.0.0-RC2/grails-doc/src/en/guide/theWebLayer/controllers/commandObjects.adoc).
   
   Extra MongoDB fields are not bound as declared properties. Set them with the 
subscript operator, as described in [dynamic 
attributes](https://github.com/apache/grails-core/blob/v8.0.0-RC2/grails-data-mongodb/docs/src/docs/asciidoc/objectMapping/dynamicAttributes.adoc).
 The same text is in 7.0.17, 7.1.7, 7.2.4, and 8.0.0-RC2.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to