lib/ecoportal/api/graphql/model/location_node.rb in ecoportal-api-graphql-0.3.7 vs lib/ecoportal/api/graphql/model/location_node.rb in ecoportal-api-graphql-0.3.8
- old
+ new
@@ -2,9 +2,10 @@
module API
class GraphQL
module Model
class LocationNode < Ecoportal::API::GraphQL::Base::LocationNode
embeds_one :parent, klass: Model::LocationNode, nullable: true
+ embeds_many :ancestors, klass: Model::LocationNode
end
end
end
end
end