Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12707

stitch function definition code example seems to miss semicolons

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Stitch
    • None
    • 1

    Description

      Description

      https://docs.mongodb.com/stitch/functions/define-a-function/

      Stitch Function Editor did not accept the example listed in

      Seems line 2 and 3 each need a semicolon ( at the end
      ```
      exports = function()

      { return "Hello, world!"; }

      ;
      ```

      Acceptance Criteria

       We have updated the code examples on the Define a Function page to properly use semicolons

      Attachments

        Activity

          People

            julia.oppenheim@mongodb.com Julia Oppenheim
            roswitha.remling@mongodb.com Roswitha Remling (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 38 weeks, 6 days ago