module Scrivito module Backend module ParentPathIndex class << self include Backend::Index def id "ppath" end def query(keys) [{ field: "_parent_path", operator: :equals, value: keys }] end def extract_update_value_from_data(data) ParentPath.of(data["_path"]) end end end end end