Module: Ecoportal::API::GraphQL::Input::SearchConf::MembranePath

Defined in:
lib/ecoportal/api/graphql/input/search_conf.rb

Overview


A register FIELD key carries a <type>.<hash> shape (e.g. 'date.zab1bddc3'); system/top-level keys (created_at, external_id, state) have no such prefix. Field filters need the nested membranes.<type> path — see

.ai-assistance/code/filter_contract_matrix.md.

Class Method Summary collapse

Class Method Details

.field_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


104
105
106
# File 'lib/ecoportal/api/graphql/input/search_conf.rb', line 104

def field_key?(key)
  key.to_s.include?('.')
end

.membrane_path_for(key) ⇒ Object



108
109
110
# File 'lib/ecoportal/api/graphql/input/search_conf.rb', line 108

def membrane_path_for(key)
  "membranes.#{key.to_s.split('.').first}"
end