title: How to create label in neo4j using nodejs
body: <p>I used following method to create a node in Neo4j using nodejs. I want to create a node with its label as well as some property. </p>
  
  <pre><code>var query = [
          "CREATE (n:TYPE {props})",
          "RETURN n",
      ].join('\n').replace('TYPE','PLAYER'); 
      var params = {
          props: data,
      };
  
  
      neo4jClient.query(query, params, function (err, results) {
          if(err) return callback(err);
          var node = neo4jClient.createNode(results[0].n._data.data);
          var player = new Player(node);
          node.save(function (err) {
              console.dir(err);
              if (err) return callback(err);            
              node.index(INDEX_NAME, INDEX_KEY, INDEX_VAL, function (err) {               
                  if (err) return callback(err);
                  callback(null, player);
              });
          });
      });
  </code></pre>
  
  <p>Problem :- Everything goes right but this method creates two nodes in neo4j. I don't know what's happening internally. Please give me some input in this problem. </p>