HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📌
hkob's Notion
/
NotionRubyMapping idea note
NotionRubyMapping idea note
/
Notion Ruby Mapping Public API Reference
Notion Ruby Mapping Public API Reference
/
🎛️
Query
🎛️

Query

👉
Links (Controller base class)
🎛️
DiscussionThread
🎛️
NotionCache
🎛️
PropertyCache
🎛️
Query
🎛️
RichTextArray
Notion Ruby Mapping Public API Reference
Notion Ruby Mapping Public API Reference
ℹ️
↑ Table of Contents
1. Singleton methodsnew(page_size: 200)2. Instance methodsand(another_query)ascending(property)descending(property)or(another_query)

1. Singleton methods

new(page_size: 200)

  • [PARAM(optional)] page_size: The number of items from the full list desired in the response. (Integer)
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)

  • [PARAM] another_query another query
and joins another_query using an and condition. See Complex conditions in B: complex conditions.
ℹ️
↑ Table of Contents

ascending(property)

  • [PARAM] property property object for ascending sort
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)

  • [PARAM] property property object for descending sort
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.
ℹ️
↑ Table of Contents

or(another_query)

  • [PARAM] another_query another query
or joins another_query using an and condition. See Complex conditions in B: complex conditions.
ℹ️
↑ Table of Contents