Reputation: 21
How do call Marklogic REST API Extension from the NodeJs Application?
As right now I am creating the nodejs application and wanted to use the rest api extension which I have already created earlier.
Upvotes: 1
Views: 56
Reputation: 20414
It comes down to doing something like:
db.extension.get('my-rest-extension')
I recommend reading up on 'Working with Resource Service Extensions' in the node-dev guide:
https://docs.marklogic.com/guide/node-dev/extensions#id_44792
HTH!
Upvotes: 1