lib/active_graph/base.rb in activegraph-11.5.0.beta.3 vs lib/active_graph/base.rb in activegraph-12.0.0.beta.1
- old
+ new
@@ -58,9 +58,13 @@
def label_object(label_name)
ActiveGraph::Core::Label.new(label_name)
end
+ def element(name, relationship: false)
+ (relationship ? Core::Type : Core::Label).new(name)
+ end
+
def logger
@logger ||= (ActiveGraph::Config[:logger] || ActiveSupport::Logger.new(STDOUT))
end
private