filter_equals(value) →
🎛️
Query

filter_equals creates a Query object for equals filter.
db.properties["CheckboxTitle"].filter_equals true # => #<NotionRubyMapping::Query:0x00000001105279f0 @filter={"property"=>"CheckboxTitle", "checkbox"=>{"equals"=>true}}, @page_size=100, @sort=[], @start_cursor=nil> db.created_time.filter_equals Date.new(2022, 5, 4) # => #<NotionRubyMapping::Query:0x000000011046dd20 @filter={"timestamp"=>"created_time", "created_time"=>{"equals"=>"2022-05-04"}}, @page_size=100, @sort=[], @start_cursor=nil> ### only RollupProperty (none, any, every) db.properties["RollupTitle"].filter_equals "abc", condition: "every", another_type: "phone_number" # => #<NotionRubyMapping::Query:0x0000000109033928 @filter={"property"=>"RollupTitle", "every"=>{"phone_number"=>{"equals"=>"abc"}}}, @page_size=100, @sort=[], @start_cursor=nil> ### only RollupProperty (date) db.properties["RollupTitle"].filter_equals Date.new(2022, 5, 7), another_type: "date" # => #<NotionRubyMapping::Query:0x000000010925b480 @filter={"property"=>"RollupTitle", "date"=>{"equals"=>"2022-05-07"}}, @page_size=100, @sort=[], @start_cursor=nil> ### only RollupProperty (number) db.properties["RollupTitle"].filter_equals 100, another_type: "number" # => #<NotionRubyMapping::Query:0x0000000108f5f0b0 @filter={"property"=>"RollupTitle", "number"=>{"equals"=>100}}, @page_size=100, @sort=[], @start_cursor=nil>