pyArango icon indicating copy to clipboard operation
pyArango copied to clipboard

Graphs can't be created with a custom name

Open andrepbento opened this issue 5 years ago • 1 comments

Hi @tariqdaouda and @dothebart. I was working with your driver/library, however i can't create a new graph with a custom name. Every time i create a new graph, it assumes the name of the class that inherits from Graph: ... class GraphExample(Graph) ... graph = self._db.createGraph('GraphExample')

I don't know if it is to be normal this way, however if it isn't, and to extend this functionality, i would suggest to change the signature of the method 'createGraph' [from database.py] to receive a custom name:

def createGraph(self, className, graphName, createCollections=True, ... ... payload = { "name": graphName, ... }

Best regards, A. Bento.

andrepbento avatar Feb 19 '19 17:02 andrepbento

Hi @andrepbento

This is the expected behaviour, but thank you for the suggestion!

tariqdaouda avatar May 15 '19 19:05 tariqdaouda