We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hot Chocolate
Unless I'm naming my properties as a camel-case in the first place, results return as nulls.
Even when I tried to use [JsonPropertyName("title")], it didn't help.
[JsonPropertyName("title")]
public class Movie { [JsonPropertyName("title")] public string Title { get; set; } [Neo4JRelationship("ACTED_IN", RelationshipDirection.Incoming)] public List<Actor> Actors { get; set; } }
The only thing which work for me is using a camel case (which is against our convention).
public class Movie { public string title { get; set; } [Neo4JRelationship("ACTED_IN", RelationshipDirection.Incoming)] public List<Actor> Actors { get; set; } }
I expect the library being able to use Pascal Case properties and honor [JsonPropertyName("title")].
You can change the project setting to
<PropertyGroup> <TargetFramework>net7.0</TargetFramework> <LangVersion>11.0</LangVersion> <Nullable>disable</Nullable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> <ItemGroup> <PackageReference Include="HotChocolate.AspNetCore" Version="12.16.0" /> <PackageReference Include="HotChocolate.Data.Neo4J" Version="12.16.0" /> </ItemGroup>
Yet, it doesn't work on the original either.
No response
12.16.0
The text was updated successfully, but these errors were encountered:
Closing, as Neo4j support has been removed in v14.
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
graphql-workshop-neo4j serialization issue on Code First
Unless I'm naming my properties as a camel-case in the first place, results return as nulls.
Even when I tried to use
[JsonPropertyName("title")]
, it didn't help.The only thing which work for me is using a camel case (which is against our convention).
I expect the library being able to use Pascal Case properties and honor
[JsonPropertyName("title")]
.Steps to reproduce
https://github.com/ChilliCream/graphql-workshop-neo4j
You can change the project setting to
Yet, it doesn't work on the original either.
Relevant log output
No response
Additional Context?
No response
Version
12.16.0
The text was updated successfully, but these errors were encountered: