You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a little snippet of what could be the answer
First method
const{collection_view_page}=awaitspace.getTRootPages((root_page)=>root_page.id===page_id);// You can use any other criteriaconstcvp=collection_view_page.get("page_id");if(cvp){constcollection=awaitcvp.getCollection();constrows=awaitcollection.getPages((page)=>true);// All the rows of the database is passed as a parameter to this callback, using a truthy value with return that row page in the result array
Second method
constcollections=awaitspace.getRootCollections((collection)=>collection.id===collection_id);// You can use any other criteria constcollection=collection.get("collection_id");if(collection){constrows=awaitcollection.getPages((page)=>true)// All the rows of the database is passed as a parameter to this callback, using a truthy value with return that row page in the result array}
I'm trying to understand the hierarchy of the Nishan client, and I'm not 100% sure how to query the data I'm after.
My page structure is such:
I want to be able to retrieve Row A, Row B, Row C as entries, but after reviewing the code I'm not sure this is exposed?
Thanks in advance
The text was updated successfully, but these errors were encountered: