Skip to content

Releases: DotNet4Neo4j/Neo4jClient

The supports Neo4j 4.x release

28 Sep 15:36
4ebac9e
Compare
Choose a tag to compare

General

  • Neo4jClient is now NetStandard 2.0, thanks to @tobymiller1 there is one project instead of 4, and things are back to being unified.
  • Transactions are now available in Core and Full framework (everywhere)
  • Only Async
  • Support for all URI schemes that Neo4j Accepts (neo4j, neo4j+s, neo4j+sc, bolt)

Removals (most of these were marked as Obsolete)

  1. Start
  2. Create(string, params object[])
  3. Return<T>(string, CypherResultMode)
  4. StartBit
  5. Mapper

Additions

  1. WithDatabase
  2. CreateDatabase
  3. StartDatabase
  4. StopDatabase
  5. DropDatabase
  6. Use
  7. Show
  8. WithQueryStats
  9. Neo4jIgnoreAttribute (via @Clooney24)

Breaking Changes

  • Async only
  • No MSDTC (TransactionScope) interaction

3.0.1 - NET 4.5.2 Supported again

08 Feb 15:57
5cb25a8
Compare
Choose a tag to compare

Version 3.0.0 didn't support .NET 4.5.2, Version 3.0.1 does!

3.0.0 - Bolt Release!

08 Feb 15:56
4f0bc94
Compare
Choose a tag to compare

We finally add Bolt to the Client!

In theory there is only one code change you need to do (assuming you're passing around IGraphClient), from:

var client = new GraphClient(new Uri("http://localhost:7474/db/data"), "user", "pass");

to

var client = new BoltGraphClient(new Uri("bolt://localhost:7687"), "user", "pass");

Adds CustomHeaders to the Query

22 Jan 08:43
Compare
Choose a tag to compare

Allows a user to specify CustomHeaders to a query to enable you to further control the queries being sent.

client.Cypher.CustomHeaders(new NameValueCollection {{"key", "value"}})

Also includes the MaxExecutionTime property to allow a user to define the execution time on a per query basis (in milliseconds):

client.Cypher.MaxExecutionTime(1000)

Adds 'ThenBy' and 'ThenByDescending' Methods

22 Jan 08:39
Compare
Choose a tag to compare

Now you can do:

.OrderByDescending("x").ThenBy("y")

Which will generate:

ORDER BY x, y DESC

OrderByDescending works for multiple elements

22 Jan 08:37
Compare
Choose a tag to compare

Previously doing .OrderByDescending("x", "y") would generate ORDER BY x y DESC
Now it will generate ORDER BY x DESC y DESC

Makes NeoException Serializable

22 Jan 08:35
Compare
Choose a tag to compare

NeoException is now serializable.

Uses CustomJsonConverters first for Deserializtion

28 Dec 12:05
Compare
Choose a tag to compare

First raised in Issue #136 - Neo4jClient Serializes POCO classes using CustomJsonConverters first, before using default. Deserialization used default, then custom.

This meant you could serialize something, but not be able to deserialize it.

Now custom serializers are used first for deserialization, default then following.

Where clauses sometimes still did Cypher 1.9 Null when against a 2+ DB

28 Dec 12:07
Compare
Choose a tag to compare

Some of the flows in .Where were still suffixing properties with ?, which is Cypher 1.9. There was nothing in the generation to respect the capability detection.

Sends X-Stream header

20 Nov 16:58
Compare
Choose a tag to compare

Now for Neo4j instances > 1.8 the X-Stream header is attached.