ns: sub
name: graph
title: My SubGraph
description: This is my subgraph.
type: flow
nodes:
  -
    id: node1
    ns: world
    name: hello
  -
    id: node2
    ns: world
    name: hello
links:
  -
    source:
      id: node1
      port: out
    target:
      id: node2
      port: in
ports:
  input:
    IN:
      nodeId: node1
      name: in
  output:
    OUT:
      nodeId: node2
      name: out
nodeDefinitions:
  world:
    hello:
      name: hello
      ns: world
      ports:
        input:
          in:
            type: string
        output:
          out:
            type: string
      fn: "output = { out: $.get('in') }\n"
