@textile/hub > ReadTransaction > findByID
ReadTransaction.findByID() method
findByID queries the store for the id of an instance.
Signature:
findByID<T = unknown>(ID: string): Promise<T | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
ID | string | The id of the instance to search for. |
Returns:
Promise<T | undefined>