It just so happened that the data I was trying to return from the transform had a .content field as the first child. So I always got the child data instead of the root that I was expecting. Took me quite a while to figure out why this was happening.
I don't know the use case for response.content, but it does create a problem if your data has a root.content
I used the getDoc() method in /ui/src/redux/crud/actions/index.js
In line 37 of the code (v2.0.1 per the pkg.json):
return { content: response.content || response, ... }
It just so happened that the data I was trying to return from the transform had a .content field as the first child. So I always got the child data instead of the root that I was expecting. Took me quite a while to figure out why this was happening.
I don't know the use case for response.content, but it does create a problem if your data has a root.content
Paul Vanderveen (paul.vanderveen@marklogic.com