Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

New Version 0.32. problems with nullable model variables #63

@rheid

Description

@rheid

Hi David Lee, thank you very much for the update to the GraphQL version of .NET. I have started to switch to this version and have found a few problems. I am using two DateTimeOffice variables with null values. These are now throwing an exception in the new version.

`[Description("Ende of the Publication")]
public DateTimeOffset? PublishingDateStart { get; set; }
[Description("Start of the Publication")]

screen-2021-01-24-60358

public DateTimeOffset? PublishingDateEnd { get; set; } `

[2021-01-24T16:56:18.300Z] Executed 'graphql' (Failed, Id=b2f31492-ffaf-4f59-98a5-ad22064279b0, Duration=7153ms)
[2021-01-24T16:56:18.301Z] System.Private.CoreLib: Exception while executing function: graphql. Autofac: An exception was thrown while activating Eklee.Azure.Functions.GraphQl.ModelConventionType1[[System.Nullable1[[System.DateTimeOffset, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]. Autofac: An exception was thrown while invoking the constructor 'Void .ctor(Microsoft.Extensions.Logging.ILogger)' on type 'ModelConventionType1'. GraphQL: A type name must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but nullable1 does not. (Parameter 'name').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions