Start a new topic

Mismatch between API reference documentation and actual code

API reference documentation for Datastore states find method returns Observable.

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

Find all entities in the collection.

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

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

Am I looking at the wrong thing?   If now this is a major problem if SDK documentation is this inacturate.

1 Comment

Hi Kiril,

You are correct. There is a discrepancy in the documentation and the typescript definition. the "find" method does return an Observable.

I have logged this to be fixed.


Martin Apostolov