public IGremlinQueryEnvironment Transform(IGremlinQueryEnvironment environment) { return(environment .UseCosmosDb(builder => { return builder .At( _configuration.GetRequiredConfiguration("Uri"), _configuration.GetRequiredConfiguration("Database"), _configuration.GetRequiredConfiguration("Graph")) .AuthenticateBy(_configuration.GetRequiredConfiguration("AuthKey")) .ConfigureWebSocket(webSocketBuilder => webSocketBuilder .Configure(_configuration)); })); }