File tree Expand file tree Collapse file tree 3 files changed +123
-132
lines changed
main/kotlin/org/springframework/data/mongodb/core/query
org/springframework/data/mongodb/core/query Expand file tree Collapse file tree 3 files changed +123
-132
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,15 @@ class TypedCriteriaBuilder {
174
174
* See [MongoDB Query operator: $type](https://docs.mongodb.com/manual/reference/operator/query/type/)
175
175
* @see Criteria.type
176
176
*/
177
- infix fun KProperty <* >.type (t : Array <JsonSchemaObject .Type >) = addOperation { type(* t) }
177
+ infix fun KProperty <* >.type (t : Collection <JsonSchemaObject .Type >) = addOperation { type(* t.toTypedArray()) }
178
+
179
+ /* *
180
+ * Creates a criterion using the $type operator.
181
+ *
182
+ * See [MongoDB Query operator: $type](https://docs.mongodb.com/manual/reference/operator/query/type/)
183
+ * @see Criteria.type
184
+ */
185
+ fun KProperty <* >.type (vararg t : JsonSchemaObject .Type ) = addOperation { type(* t) }
178
186
179
187
/* *
180
188
* Creates a criterion using the $not meta operator which affects the clause directly following
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments