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

return multiple and JsonProperty / JsonPropertyName #434

Open
zweistein22 opened this issue Feb 17, 2022 · 0 comments
Open

return multiple and JsonProperty / JsonPropertyName #434

zweistein22 opened this issue Feb 17, 2022 · 0 comments
Assignees
Labels

Comments

@zweistein22
Copy link

zweistein22 commented Feb 17, 2022

Having a simple query:

`var query = client.Cypher
.Match("(u:User {Sub: $sub})-[r:"+relationName+"]->(q:Query)")
.WithParam("sub",user.Sub)
.With("r,q")
.OrderByDescending("r.Time")
.Return((q,r) => new QueryHistoryReturn()
{
Query = q.As(),
RelationParams = r.As()
});

will return an empty Query object if Query is defined like this:

public class Query
{
[System.Text.Json.Serialization.JsonPropertyName("text")]
[Newtonsoft.Json.JsonProperty(PropertyName = "text")]
public string Text { get; set; }
}
`

Once I comment the the JsonProperty Attributes the above query returns the correct values.
Is this a bug?

P.S. Editor removes some symbols like "<"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants