Skip to content

Coalesce Type Inference #127

Closed Answered by danielcweber
navilan asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Coalesce is the preferred approach for these kind of queries, however, you should be aware that it's not 100% safe for concurrency because of the lack of transactions in CosmosDB. So the moment you create the edge with a specific Id, another process might have done so already.
  2. Check out the types of both current arguments to Coalesce. They probably disagree (one of them probably being IEdge.... and the other one being IOutEdge... or IInEdge... Either explicitly specify IEdgeGremlinQueryBase<Liked> as argument to Coalesce, or force a common base interface by calling 'ForceEdge' on both arguments (the latter one will already do I guess).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@navilan
Comment options

Answer selected by navilan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants