Skip to content

Commit cc69e13

Browse files
fixes
1 parent 6d5048a commit cc69e13

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
weaviate-ruby (0.2.0)
4+
weaviate-ruby (0.3.0)
55
faraday (~> 2.7)
66
graphlient (~> 0.7.0)
77

lib/weaviate/query.rb

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def aggs(
5454
object_limit: object_limit
5555
)
5656
response.data.aggregate.send(class_name.downcase)
57-
5857
rescue Graphlient::Errors::ExecutionError => error
5958
raise Weaviate::Error.new(error.response.data.aggregate.errors.messages.to_h)
6059
end
@@ -81,11 +80,11 @@ def get_query(
8180
after: $after,
8281
limit: $limit,
8382
offset: $offset,
84-
#{near_text.present? ? "nearText: #{near_text}" : ''},
85-
#{near_vector.present? ? "nearVector: #{near_vector}" : ''},
86-
#{near_object.present? ? "nearObject: #{near_object}" : ''},
87-
#{where.present? ? "where: #{where}" : ''},
88-
#{sort.present? ? "sort: #{sort}" : ''}
83+
#{near_text.present? ? "nearText: #{near_text}" : ""},
84+
#{near_vector.present? ? "nearVector: #{near_vector}" : ""},
85+
#{near_object.present? ? "nearObject: #{near_object}" : ""},
86+
#{where.present? ? "where: #{where}" : ""},
87+
#{sort.present? ? "sort: #{sort}" : ""}
8988
) {
9089
#{fields}
9190
}
@@ -110,15 +109,15 @@ def aggs_query(
110109
#{class_name}(
111110
objectLimit: $object_limit,
112111
groupBy: $group_by,
113-
#{near_text.present? ? "nearText: #{near_text}" : ''},
114-
#{near_vector.present? ? "nearVector: #{near_vector}" : ''},
115-
#{near_object.present? ? "nearObject: #{near_object}" : ''}
112+
#{near_text.present? ? "nearText: #{near_text}" : ""},
113+
#{near_vector.present? ? "nearVector: #{near_vector}" : ""},
114+
#{near_object.present? ? "nearObject: #{near_object}" : ""}
116115
) {
117116
#{fields}
118117
}
119118
}
120119
}
121120
GRAPHQL
122-
end
121+
end
123122
end
124123
end

lib/weaviate/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Weaviate
4-
VERSION = "0.2.0"
4+
VERSION = "0.3.0"
55
end

0 commit comments

Comments
 (0)