module Ecoportal module API class GraphQL module Base class LocationNode < Ecoportal::API::GraphQL::Base::Model passkey :id passthrough :name passthrough :weight embeds_one :parent, klass: Base::LocationNode, nullable: true passboolean :archived passthrough :archivedToken embeds_many :classifications, klass: Base::LocationClassificationType def parentId parent&.id end end end end end end