Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved cursor.ToListAsync inside transaction, as required for Neo4J 4.… #362

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

tobymiller
Copy link
Contributor

…x. Also sorted out some nulls in bookmarks.

@tobymiller
Copy link
Contributor Author

I was encountering https://github.com/neo4j/neo4j-dotnet-driver/issues/380 issue using the latest prerelease, so as suggested on the issue, I've moved the collection of results to the inside of the transaction call. I've sanity checked it against a live Neo4J 4.1 and it works both inside and outside a transaction. Inside a transaction (with no bookmarks declared) I was hitting NullReferenceExceptions, so I've cleared those up as well.

@cskardon If you're happy with this, please could we have another prerelease with it?

@cskardon
Copy link
Member

cskardon commented Jul 3, 2020

Yep, I'm happy largely as it's what I'd just been doing, I'll pull this in then add a few changes so it aligns with mine :)

@cskardon cskardon merged commit 7437224 into DotNet4Neo4j:40-development Jul 3, 2020
@tobymiller
Copy link
Contributor Author

Awesome. Thanks!

@cskardon
Copy link
Member

cskardon commented Jul 3, 2020

So this is 4.0.0.5 and 4.0.0.6 (PR #363 ) works with HTTP as well .

Thanks for doing this!

cskardon pushed a commit that referenced this pull request Sep 3, 2020
…x. Also sorted out some nulls in bookmarks. (#362)
cskardon pushed a commit that referenced this pull request Sep 5, 2020
…x. Also sorted out some nulls in bookmarks. (#362)
cskardon pushed a commit that referenced this pull request Sep 18, 2020
* change bolt client to use async endpoints of driver

* accidental change

* restructure solution for dotnet standard only

* remove all sync endpoints, move everything to async (except transactions), and delete gremlin

* add transactions

* transactions tests

* cleanup a couple of things

* Multi-targeting 4.5.2, 4.6 as well as netstandard 2.0 now

Added build constants for net45, and added the VB tests back in
Adding Version into the csproj for CI

* Updating the Readme

* It will build - but not tested. DO NOT USE.

* Preventing NCrunch solution files being committed

* Parameters all use $ syntax now

* Fixing some tests - more to go - mocking issues atm

* Removed a lot of REST/Gremlin code from the GraphClient

* `GraphClient` and `BoltGraphClient` currently connect against `4.0`

Need to test GC with 3.5 - as no longer using `cypher` endpoint for anything, only tx

* Majority of tests fixed, 3 to go

* Tests fixed

* update neo4j driver and add support for new signed and self-signed sc… (#356)

* update neo4j driver and add support for new signed and self-signed schemes

* update readme

* Moved cursor.ToListAsync inside transaction, as required for Neo4J 4.x. Also sorted out some nulls in bookmarks. (#362)

* Updating so the `Http` and `Bolt` versions work (#363)

* Transactions and WithDatabase (#367)

* Handling Encryption

* Transactional 'WithDatabase'

* Fix #386 on 4.x (#372)

* Adding `USE` to the CypherFluentQuery

* 40 development (#374)

* Tests for Transactions


Throws exceptions when cypher gives back errors

This is now for the 'ExecuteCypherNoResults' side of things

QueryStats for GraphClient - ExecuteNoResults

3.5 / 4.x

* WithQueryStats for GraphClient

* WithQueryStats for BoltGraphClient

* Manual implementation of 'Neo4jIgnoreAttribute'

To take into account changes since the PR was originally written by https://github.com/Clooney24

* 40 development (#375)

* Remove `Start`

* Create(string, params object[])

* Return<T>(string, CypherResultMode)

* StartBit (various)

* Mapper

* Hiding unused member

* Database Administration Commands

* Set capabilities properly

* Updating Readme

Co-authored-by: Toby Miller <tobycmiller@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants