Hi All,
The module docs for db:replace (http://docs.basex.org/wiki/Database_Module#db:replace) states that: "Replaces a document, specified by $path, in the database $db with the content of $input, or adds it as a new document."
However, when I try to run a query using db:replace: return db:replace($database, $jsonXML, $targetProfilePath)
I get the following error regardless of whether there is a document in the db at that path or not: [FODC0002] Resource "/targetProfiles/5321cff2e4b0372d556893f4" does not exist.
db:add() seems to be working fine but I would prefer not to add multiple documents at the same path.
I suppose I can work around this by first using db:delete() to remove any documents at the path and then using db:add() but I would appreciate any insight into why db:replace() isn't working as expected.
Thanks, -Jesse