how to query by multiple vertex ids? #624
-
sorry I think this should be simple but I can't find/figure out a solution - if I have a list of ids for a vertex, how do I pass that to my query e.g. something like var ids = new [] { "foo", "bar };
var persons = await g.V<Person>(ids).ToArrayAsync(); I get an error from cosmos regarding the keys
|
Beta Was this translation helpful? Give feedback.
Answered by
danielcweber
Apr 8, 2022
Replies: 1 comment 1 reply
-
Look a the signature of |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jbockle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look a the signature of
V
: It takesparams object[]
. What you're passing is a array of strings, which will be treated as a single object. So you are effectively passing an array of strings as key, which won't work.var ids = new object[] { "foo", "bar };
will do the trick.