lib/ecoportal/api/graphql/base/location_structure.rb in ecoportal-api-graphql-0.3.7 vs lib/ecoportal/api/graphql/base/location_structure.rb in ecoportal-api-graphql-0.3.8
- old
+ new
@@ -6,11 +6,11 @@
extend Ecoportal::API::GraphQL::Helpers::LocationsTree
passkey :id
passthrough :name, :weight
passboolean :archived, :published, :visitorManagementEnabled
- embeds_many :nodes, klass: Ecoportal::API::GraphQL::Base::LocationNode, order_key: :weight
- passthrough :draft
+ embeds_one :updatedAt, klass: Base::DateTime
+ embeds_many :nodes, klass: Base::LocationNode, order_key: :weight
def treeify
self.class.treeify(nodes)
end
end