<aside> 👉 Links (Controller base class)

DiscussionThread

NotionCache

PropertyCache

Query

RichTextArray

Notion Ruby Mapping Public API Reference

</aside>

<aside> ℹī¸ ↑ Table of Contents

</aside>

1. Singleton methods

new(page_size: 200)

Query object is usually filter_with_XXX methods, so Query.new is only used for sort criteria. See Sort criteria in C: Sort criteria.

query = Query.new page_size: 200
=> #<NotionRubyMapping::Query:0x0000000109461298 @filter={}, @page_size=200, @sort=[], @start_cursor=nil>

↑ Table of Contents

2. Instance methods

and(another_query)

and joins another_query using an and condition. See Complex conditions in B: complex conditions.

↑ Table of Contents

ascending(property)

Using ascending, sort criteria can be appended to an existing query object. If you don't use the previous filters, you can generate by Query.new. See Sort criteria in C: Sort criteria.

↑ Table of Contents

descending(property)

Using descending, sort criteria can be appended to an existing query object. If you don't use the previous filters, you can generate by Query.new. See Sort criteria in C: Sort criteria.