Skip to content

Commit 2e7cee1

Browse files
committed
remove option filter_by from update_document
1 parent aea5f4c commit 2e7cee1

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## major.minor.patch (yyyy.mm.dd)
99

10+
## 0.5.1 (2025.01.12)
11+
12+
### Removed
13+
14+
* `filter_by` option from `Documents.update_document`.
15+
1016
## 0.5.0 (2025.01.08)
1117

1218
### Added

lib/open_api_typesense/operations/documents.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ defmodule OpenApiTypesense.Documents do
697697
698698
## Options
699699
700-
* `filter_by`: Filter results by a particular value(s) or logical expressions. multiple conditions with &&.
701700
* `dirty_values`: Dealing with Dirty Data
702701
703702
"""
@@ -744,7 +743,7 @@ defmodule OpenApiTypesense.Documents do
744743
def update_document(%Connection{} = conn, collectionName, documentId, body, opts)
745744
when is_struct(conn) do
746745
client = opts[:client] || @default_client
747-
query = Keyword.take(opts, [:dirty_values, :filter_by])
746+
query = Keyword.take(opts, [:dirty_values])
748747

749748
client.request(conn, %{
750749
args: [collectionName: collectionName, documentId: documentId, body: body],

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule OpenApiTypesense.MixProject do
33

44
@source_url "https://github.com/jaeyson/open_api_typesense"
55
@hex_url "https://hexdocs.pm/open_api_typesense"
6-
@version "0.5.0"
6+
@version "0.5.1"
77

88
def project do
99
[

priv/open_api.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,6 @@ paths:
954954
required: true
955955
schema:
956956
type: string
957-
- name: filter_by
958-
in: query
959-
description: >-
960-
Filter results by a particular value(s) or logical expressions.
961-
multiple conditions with &&.
962-
schema:
963-
type: string
964-
example: 'companies_id:>=0'
965957
- name: dirty_values
966958
in: query
967959
description: Dealing with Dirty Data

0 commit comments

Comments
 (0)