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
var props = new { id = ..., name = ... }
var parameters = new { props }
session.Run("...", parameters)
The Run with "object" parameters does not support this use case since the ToDictionary extension (from Internal/Extensions/CollectionsExtensions.cs) transform only the first level and do not go deeper (in the "props" anonymous object).
I agree it is probably useful only in the setting props use case, but would be could great to be able to do this easily. Or we could have a Props class that manage this use case and a new Run overload?
Thanks
Clément
The text was updated successfully, but these errors were encountered:
Hello,
I was trying to set multiple properties on a node using a "props" parameter (as it is done here http://neo4j.com/docs/developer-manual/current/cypher/syntax/parameters/#cypher-parameters-create-node-with-properties).
I tried with the following anonymous parameter:
The Run with "object" parameters does not support this use case since the ToDictionary extension (from Internal/Extensions/CollectionsExtensions.cs) transform only the first level and do not go deeper (in the "props" anonymous object).
I agree it is probably useful only in the setting props use case, but would be could great to be able to do this easily. Or we could have a Props class that manage this use case and a new Run overload?
Thanks
Clément
The text was updated successfully, but these errors were encountered: