The image shows the basic workflow for using SODA for in-database JavaScript. The image is organized as a flow chart that includes five boxes arranged vertically and connected by arrows, starting from the top. Each box is divided in two parts, the number and name of the step on the left and a corresponding example code element on the right.

The first box is labeled "1. Import the MLE JavaScript SQL Driver" and includes the following example code element to the right:
import oracledb from "mle-js-oracledb";
The second box is labeled "2. Create a Database Connection Handle" and includes the following example code element to the right:
const connection = oracledb.defaultConnection();
The third box is labeled "3. Get a SODA Database Object" and includes the following example code element to the right:
const db = connection.getSodaDatabase();
The fourth box is labeled "4. Create or Open a Collection" and includes the following example code element to the right:
const col = db.createCollection("MyJSONCollection");
The fifth box is labeled "5. Work with SODA Documents" and includes the following example code element to the right:
...
//Create a JSON document
const doc = {
    "employee_id": 100,
    "job_id": "AD_PRES",
    "last_name": "King",
    "first_name" "Steven"
    ...
};
//Insert the document into a collection
col.insertOne(doc);
...

The example code elements correspond to lines included in Example 7-1.