DefinitelyTyped/types/gremlin
Sebastian Gug c5fb79f535 Update index.d.ts (#40672)
Azure Cosmos DB with Gremlin API does not support fluent API yet, it was further postponed to first half of 2020.

As a workaround, we are using the translator to submit fluent api queries as 'script'.

However, we cannot initialize a translator that works with Azure's CosmosDB based based on an AnonymousTraversalSource or GraphTraversalSource, this type must allow for the 'string' possibility.

The correct usage with Azure's cosmos db is: 

```
const translator = new gremlin.process.Translator('g' as any);
``` 
Currently this works.

Related stackoverflow thread: 

https://stackoverflow.com/questions/58815569/azure-cosmos-gremlin-nodejs-how-to-submit-fluent-query-as-script-not-bytecod/59056304#59056304
2019-12-10 14:24:12 -05:00
..
gremlin-tests.ts
index.d.ts
tsconfig.json
tslint.json