Get NoSQL Table InstanceAdmin Scope

Note: Ensure you have installed the required package to use this SDK method.

You can use the table() SDK method to fetch an instance for a table created in Catalyst NoSQL. This instance will be used to refer to the required table and perform the required operations. This process will not fire a server-side call.

You can pass the table ID, name, or even details of the table passed as a JSON.

Get Instance with Table ID

You can pass the table ID of the required table to the table() method to get the required instance.

The nosql reference used in the code snippets below is the component instance created earlier.

copy
const nosql = new NoSQL();
const tableinstanceA = nosql.table('20660000000025022'); // Create a table instance with Table ID

Get Instance With Table Name

You can pass the name of the required NoSQL table to the table() method, to get its instance.

The nosql reference used in the code snippets below is the component instance created earlier.

copy
const nosql = new NoSQL();
const tableInstanceB = nosql.table('Emptable'); // Create a table instance with the table name

Get Instance With Table Details

You can resolve the details of the required table as a JSON and pass it to the table() method to get the instance of the required table. This method, in particular, allows you to duplicate a table object whose instance you already fetched using the ID or name.

The nosql reference used in the code snippets below is the component instance created earlier.

copy
const nosql = new NoSQL();
const tableInstanceC = nosql.table(tableA.toJSON()); // Create a table instance with table details

Last Updated 2026-07-02 14:51:41 +0530 IST