@textile/hub > Client > listCollections
Client.listCollections() method
Lists the collections in a thread
Signature:
listCollections(thread: ThreadID): Promise<Array<pb.GetCollectionInfoReply.AsObject>>;
Parameters
Parameter | Type | Description |
---|---|---|
thread | ThreadID | the ID of the database |
Returns:
Promise<Array<pb.GetCollectionInfoReply.AsObject>>