Start a new topic

Datastore.find return type in documentation is incorrect

Documentation for Datastore .find method states that the find method returns observable like so: 


find(query: Query, options: Object): Observable

Find all entities in the collection.


But code in node_modules/kinvey-js-sdk/lib/datastore/networkstore.d.ts  shows that the find method returns type 'any': 


export declare class NetworkStore {

collectionName: string;

constructor(collectionName: string);

...

find(query?: Query, options?: any): any;

...

}


Am i looking at the wrong file?  If not when will the documentation be updated.  Having such discrepancies in the sdks documentation is very worrisome.


1 Comment

Hi Kiril,


Please check this link for datastore find() method and how it returns an Observables.


Thanks,

Pranav

Kinvey

Login or Signup to post a comment