lib/ecoportal/api/graphql/query/location_structure.rb in ecoportal-api-graphql-0.3.13 vs lib/ecoportal/api/graphql/query/location_structure.rb in ecoportal-api-graphql-0.3.14

- old
+ new

@@ -12,11 +12,11 @@ private def basic_block(&block) final_block = block || default_query_block - Proc.new { + proc { query(id: :id!, includeArchivedNodes: :boolean) { currentOrganization { locations { structure(id: :id, &final_block) } @@ -27,10 +27,10 @@ # At the moment it always retrieves archived nodes!! # @note this is on purpose, as via API # there isn't much sense in not including archived nodes. def default_query_block - Proc.new { + proc { id name archived weight updatedAt