Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
Signed-off-by: berrybeat GmbH <[email protected]>
  • Loading branch information
berrybeat authored Sep 3, 2024
1 parent e71bbfa commit 38e1e2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Neo4j.Berries.OGM/Contexts/GraphContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void ResetCreateCommands()
}
}

public string GetGeneratedCypher()
public string ShowGeneratedCypher()
{
try
{
Expand Down Expand Up @@ -172,6 +172,8 @@ private static string BuildFinalQuery(string cypher, IDictionary<string, object>

private static string FormatParameter(object value)
{
if(value == null) return string.Empty;

if (value is string strValue)
{
return $"'{strValue}'";
Expand Down

0 comments on commit 38e1e2e

Please sign in to comment.