@@ -249,10 +249,14 @@ def not_equal_to(field_uid, value)
249
249
# @param [String] field_uid UID of the field for which query should be executed
250
250
# @param [String] values The possible values for the key's object
251
251
#
252
- # Example
252
+ # Example 1 - Array Equals Operator Within Group
253
253
# @query = @stack.content_type('category').query
254
254
# @query.contained_in("title", ["Electronics", "Apparel"])
255
255
#
256
+ # Example 2 - Array Equals Operator Within Modular Blocks
257
+ # @query = @stack.content_type('category').query
258
+ # @query.contained_in("additional_info.deals.deal_name", ["Christmas Deal", "Summer Deal"])
259
+ #
256
260
# @return [Contentstack::Query]
257
261
def contained_in ( field_uid , values )
258
262
add_query_hash ( { :"#{ field_uid } " => { "$in" => values } } )
@@ -264,10 +268,14 @@ def contained_in(field_uid, values)
264
268
# @param [String] field_uid UID of the field for which query should be executed
265
269
# @param [String] values The possible values for the key's object
266
270
#
267
- # Example
271
+ # Example 1 - Array Not-equals Operator Within Group
268
272
# @query = @stack.content_type('category').query
269
273
# @query.not_contained_in("title", ["Electronics", "Apparel"])
270
274
#
275
+ # Example 2 - Array Not-equals Operator Within Modular Blocks
276
+ # @query = @stack.content_type('category').query
277
+ # @query.not_contained_in("additional_info.deals.deal_name", ["Christmas Deal", "Summer Deal"])
278
+ #
271
279
# @return [Contentstack::Query]
272
280
def not_contained_in ( field_uid , values )
273
281
add_query_hash ( { :"#{ field_uid } " => { "$nin" => values } } )
@@ -377,6 +385,7 @@ def descending(field_uid)
377
385
# @param [String] code The locale code of the entry
378
386
#
379
387
# Example
388
+ # Change language method
380
389
# @query = @stack.content_type('category').query
381
390
# @query.locale('en-us')
382
391
#
0 commit comments