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'd like to return an IAsyncEnumerable from a method using CypherFluentQuery, is that possible?
That's how far I am with this:
varcypherFluentQuery=_client.Cypher
...CypherQuery Magic here....Return(()=>new{
...});awaitusingvarsession=_driver.AsyncSession();IResultCursor?cursor=awaitsession.Run(cypherFluentQuery.Query,_client);while(awaitcursor.FetchAsync()){IRecordrecord=cursor.Current;// Now how to parse IRecord to T (my class, let's stay Student class)?yieldreturn(Student)record;}
But I'm stuck deserializing the record from session.Run to my class. StatementResultHelper might be helpful for that, but it's internal. Is there any other way to reach through neo4jclient to get IResultCursor or something different to be able to return as IAsyncEnumerable
Thanks for any help :)
The text was updated successfully, but these errors were encountered:
Hi,
I'd like to return an IAsyncEnumerable from a method using CypherFluentQuery, is that possible?
That's how far I am with this:
But I'm stuck deserializing the record from
session.Run
to my class.StatementResultHelper
might be helpful for that, but it'sinternal
. Is there any other way to reach through neo4jclient to getIResultCursor
or something different to be able to return asIAsyncEnumerable
Thanks for any help :)
The text was updated successfully, but these errors were encountered: