0.1.0 • Published 4 years ago

textile-repository v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Textile Repository

A utility, wrapper class to query your collection in threadsDB of Textile (IPFS).

Textile repository class is a wrapper class that will help you to give you always the Model class with the generic interface.

When you develop with Textile ThreadsDB, this will be very helpfull.

export interface ISearch extends Model {
    name: string;
    blob: any;
}

const repo = new Repository<ISearch>(searchCollectionName, db, threadId);
repo.findById(id);