diff --git a/src/Neo4j.Berries.OGM/Contexts/GraphContext.cs b/src/Neo4j.Berries.OGM/Contexts/GraphContext.cs index 4154960..45d78ee 100644 --- a/src/Neo4j.Berries.OGM/Contexts/GraphContext.cs +++ b/src/Neo4j.Berries.OGM/Contexts/GraphContext.cs @@ -112,7 +112,7 @@ private void ResetCreateCommands() } } - public string GetGeneratedCypher() + public string ShowGeneratedCypher() { try { @@ -172,6 +172,8 @@ private static string BuildFinalQuery(string cypher, IDictionary private static string FormatParameter(object value) { + if(value == null) return string.Empty; + if (value is string strValue) { return $"'{strValue}'";