Syntax
First, import the MantaClient from the library, see Getting Started:
Parameters
The fetchOneRecord() method accepts a single object as its parameter with the following properties:
Filtering
The most common way to use fetchOneRecord is by providing a table and a where filter to uniquely identify the record.
Field selection
You can improve performance by specifying which fields to return using the fields parameter. This reduces payload size and bandwidth.
Relationships
Relationships allow you to fetch related data from multiple tables in a single API call using the with parameter. Instead of making separate requests for each table, you can retrieve complex, interconnected data structures all at once.