You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a query here which is quite complex and I won't go into much detail because I think there is no need. The point here is at some point in the query I want to continue doing more queries if the stuff I am querying exists, if not I want just to return what I had already.
I am doing this with a coalesce method but the problem with this is I lose my types (return becomes object[]).
Is there a better way to do that or a way that I can do stuff like this without losing the types? I wonder if it is possible to select a null vertex in the second traversal of the coalesce. Something like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a query here which is quite complex and I won't go into much detail because I think there is no need. The point here is at some point in the query I want to continue doing more queries if the stuff I am querying exists, if not I want just to return what I had already.
I am doing this with a coalesce method but the problem with this is I lose my types (return becomes object[]).
Is there a better way to do that or a way that I can do stuff like this without losing the types? I wonder if it is possible to select a null vertex in the second traversal of the coalesce. Something like:
I am guessing there is a way to do that with something like .ForceVertex() or .ForceValueTuple() but I am not sure how to use that
Beta Was this translation helpful? Give feedback.
All reactions