Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8638

[UDF] creating external library example is incorrect based on new design

    XMLWordPrintable

Details

    • 1

    Description

      https://docs-staging.couchbase.com/server/7.0/n1ql/n1ql-language-reference/createfunction.html#context

      On this page the screenshotted example is now wrong. Basically the way to create external library functions was changed, I am not sure if this needs to be updated in other places besides this one but this is where I noticed it, the correct way to create functions now is as follows. I'd imagine the creating library documentation will need an overhaul if it hasn't been changed already

      curl -X POST http://172.23.123.66:8093/evaluator/v1/libraries/math -u Administrator:password -H 'content-type: application/json' -d 'function adder(a, b)

      { return a + b; }

      function multiplier(a, b)

      { return a * b; }

      '

      The endpoint and syntax have both changed

      Abhishek Jindal can provide more information if needed

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              simon.dew Simon Dew
              ajay.bhullar Ajay Bhullar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty