Skip to content

Commit

Permalink
Nested sub-field topic under full document retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe442 committed Dec 16, 2024
1 parent 8a036bd commit aef5202
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ Steps for retrieving the document:
(2 rows)
```

## Accessing nested fields
### Accessing nested fields

MongoDB Foreign Data Wrapper allows you to access individual fields within nested JSON documents by mapping the nested structure to columns in a foreign table.
This works by mapping the nested structure of the MongoDB document to relational columns in the foreign table definition, using dot notation (key2.subkey21) to reference nested fields.
You can retrieve these fields from a collection as shown in the following example:

### Example
#### Example

```text
db1> db.test_sub_json.find()
Expand Down

0 comments on commit aef5202

Please sign in to comment.