Method: Graphcommons::Signal.node_create

Defined in:
lib/graphcommons.rb

.node_create(id, options) ⇒ Object

This signal type is used for creating nodes. All signals of this type must define a type and name key. type - name pairs must be unique.

Upon saving this signal, a new node id is created. The type of the node is matched with a predefined node type from the hub/graph. If the node type does not already exist, a node type is created.

Required options: :name, :type

graphcommons.github.io/api-v1/#node_create



289
290
291
292
# File 'lib/graphcommons.rb', line 289

def self.node_create id, options
  options[:action] = :node_create
  self._signal id, options
end