Sha256: ccbed24799054804ba0d230256a65cf6a9d64bc742eeffe500d8f0ac2f6a607d
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
module Dynomite::Item::Query::Params::Function class AttributeExists < Base def filter_expression filter_expression = [] @query[:attribute_exists].each do |path| path = normalize_expression_path(path) filter_expression << "attribute_exists(#{path})" end @query[:attribute_not_exists].each do |path| path = normalize_expression_path(path) filter_expression << "attribute_not_exists(#{path})" end filter_expression end def attribute_names paths = @query[:attribute_exists] + @query[:attribute_not_exists] build_attribute_names_with_dot_paths(paths) end end end
Version data entries
4 entries across 4 versions & 1 rubygems