-
Notifications
You must be signed in to change notification settings - Fork 53
Description
The documentation here:
http://docs.marklogic.com/guide/node-dev/documents#id_76998
Shows that a transform can be specified as an object so that the transform params can be passed:
db.documents.write({
documents: [
{uri: '/doc/example1.json', content: {...}},
{uri: '/doc/example2.json', content: {...}}
],
transform: {
name: 'my-transform',
my-first-param: 'value',
my-second-param: 42
}
});
When I run something like this, though, I get this error:
RESTAPI-INVALIDREQ: (err:FOER0000) Invalid request: reason: Extension [object Object] does not exist.
Looking at the the node client documentation it shows the transform property can only be a string:
http://docs.marklogic.com/jsdoc/documents.html#write
so that would make sense. Should I be able to pass an object? Which documentation is lying?
This is against a MarkLogic 8.0-5.2 server. Is the client sending it incorrectly, or is the server parsing it incorrectly, or is something else wrong?
If I don't need to pass any parameters and just specify the string then it works fine.