Defined in node_modules/racer/lib/Model/collections.d.ts:102 Constructors constructor new Collection < T > ( model , name , docClass ) : Collection < T > Parameters model : RootModel name : string docClass : typeof Doc Defined in node_modules/racer/lib/Model/collections.d.ts:109 Properties Doc Defined in node_modules/racer/lib/Model/collections.d.ts:108 data Defined in node_modules/racer/lib/Model/collections.d.ts:107 docs Defined in node_modules/racer/lib/Model/collections.d.ts:106 model model : RootModel
Defined in node_modules/racer/lib/Model/collections.d.ts:103 name name : string
Defined in node_modules/racer/lib/Model/collections.d.ts:104 size size : number
Defined in node_modules/racer/lib/Model/collections.d.ts:105 Methods add add ( id , data ) : Doc Returns Doc doc
Defined in node_modules/racer/lib/Model/collections.d.ts:116 destroy destroy ( ) : void Returns void Defined in node_modules/racer/lib/Model/collections.d.ts:117 get Or Create Doc get Or Create Doc ( id , data ) : Doc Returns Doc Defined in node_modules/racer/lib/Model/collections.d.ts:118 remove remove ( id ) : void Returns void Defined in node_modules/racer/lib/Model/collections.d.ts:126
Adds a document with
id
anddata
tothis
Collection.