Method: Utils::CollectionViewComponents.query_collection
- Defined in:
- lib/notion_api/utils.rb
.query_collection(collection_id, view_id, search_query = "") ⇒ Object
607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 |
# File 'lib/notion_api/utils.rb', line 607 def self.query_collection(collection_id, view_id, search_query = "") # ! payload for querying the table for data. # ! collection_id -> the collection ID : ``str`` # ! view_id -> the view ID : ``str`` # ! search_query -> the query for searching the table : ``str`` query = {} loader = { type: "table", limit: 100, searchQuery: search_query, loadContentCover: true, } { collectionId: collection_id, collectionViewId: view_id, query: query, loader: loader, } end |