jorishermans / textile-repository

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

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

License:MIT License


Languages

Language:TypeScript 100.0%