Skip to content

MapConverter throws if extensions property is null #601

Closed
@PSanetra

Description

@PSanetra

It seems like GraphQL.Client.Serializer.Newtonsoft.MapConverter expects properties of type Map to be never null. This is confusing as even the GraphQLResponse class declares the extensions property as Map?:

public Map? Extensions { get; set; }

Related code:

throw new ArgumentException("This converter can only parse when the root element is a JSON Object.");

There is also a related StackOverflow issue: https://stackoverflow.com/q/70884409/4019462

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions