     graph.properties.id = uuid.v4()
     graph.properties.environment = {} unless graph.properties.environment
     graph.properties.environment.type = project.type unless graph.properties.environment.type
+    collections.addToList project.graphs, graph
     callback null, graph
     do callback
 

    language: entry.remote.language
    sha: sha
    changed: false
  callback null, newEntry

handleSpec = (sha, content, entry, project, callback) ->

noflo = require 'noflo'
uuid = require 'uuid'
collections = require '../src/collections'

handleGraph = (sha, content, entry, project, callback) ->
  # Start by loading the graph object
