Implement GraphRepository with the mongoDB storage.