I am trying to add an unique index to my collection. I am writing code:
conn = Connection()
db = conn['textBook']
db['Users'].ensureHashIndex('word', unique = True);
(There is database 'textBook' with collection 'Users' existing.)
pyArango.theExceptions.CreationError: bad parameter. Errors: {u'errorMessage': u'bad parameter', u'errorNum': 10, u'code': 400, u'error': True}
It is occuring while creating Index in function _create (raise CreationError(data['errorMessage'], data) )
Which parameters are incorrect?
{fields: [ "word"]}; depending on the implementation only adding brackets [ ] to get a list may work.