PHB-CS123 / graphene

CS123 Graph Database Project
Apache License 2.0
0 stars 0 forks source link

can't insert relations with no attributes #8

Closed codyhan94 closed 9 years ago

codyhan94 commented 9 years ago

Type T (a: int). Relation R.

The following happens. Should be easy fix.

insert relation T(a=1)-[R]->T(a=2);
TypeError: 'NoneType' object is not iterable
  ============================== STACK TRACE ==============================
  In graphene.client.shell.default, line 61:
      if not self.server.doCommands(line):
  In graphene.server.server.doCommands, line 79:
      cmd.execute(self.storage_manager)
  In graphene.commands.insert_relation_command.execute, line 54:
      rel_props = self.parse_properties(self.rel[1], rel_schema, storage_manager)
  In graphene.commands.insert_relation_command.parse_properties, line 31:
      for prop, schema_tt in zip(prop_list, schema):
  =========================================================================