Skip to content

Commit 69d21ee

Browse files
committed
Incorporate review feedback
1 parent c93be5d commit 69d21ee

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

source/includes/api-details/swift/atlas/call-atlas-function-call-function-description.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
To execute a function in Swift, use the ``functions`` object on the currently
2-
logged-in user.
1+
To execute a function in Swift, use the :swift-sdk:`functions
2+
<Structs/Functions.html>` object on the currently logged-in user.
33

44
The ``functions`` object has dynamic members corresponding to functions.
55
In this case, ``functions.concatenate()`` refers to the ``concatenate``

source/includes/sdk-examples/atlas/call-atlas-function-call-function.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@
6868
- id: typescript
6969
content: |
7070

71-
.. literalinclude:: /examples/MissingPlaceholders/example.ts
72-
:language: typescript
73-
:copyable: false
71+
.. io-code-block::
72+
73+
.. input:: /examples/generated/node/call-a-function.snippet.call-a-function-by-name.js
74+
:language: javascript
75+
76+
.. output::
77+
:language: console
78+
79+
Using the "functions.sum()" method: the sum of 2 + 3 = 5
80+
Using the "callFunction()" method: the sum of 2 + 3 = 5

source/sdk/atlas/call-function.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Call an Atlas Function
1919
.. contents:: On this page
2020
:local:
2121
:backlinks: none
22-
:depth: 2
22+
:depth: 1
2323
:class: singlecol
2424

2525
.. tabs-selector:: drivers
@@ -42,15 +42,7 @@ Before You Begin
4242
Functions through the user object.
4343

4444
The example on this page demonstrates calling an :ref:`Atlas Function <functions>`
45-
named ``sum`` or ``concatenate`` that takes two arguments, sums or concatenates
46-
them, and returns the result:
47-
48-
.. code-block:: javascript
49-
50-
// concatenate: concatenate two strings
51-
exports = function(a, b) {
52-
return a + b;
53-
};
45+
that takes two arguments, performs some work, and returns the result.
5446

5547
Call a Function
5648
---------------

0 commit comments

Comments
 (0)