Skip to content

GetDataFieldAs not mapping to model #126

@darrylwolfaardt

Description

@darrylwolfaardt

Hi

I am working on a POC using the graphql-client.

My response from (var graphQLResponse = await graphQLClient.PostAsync(query);) come back well formatted.

But when I try and map it to my model (var q = graphQLResponse.GetDataFieldAs<List>("orders");) I get the following error:

{"Cannot implicitly convert type 'object' to 'System.Collections.Generic.List'. An explicit conversion exists (are you missing a cast?)"}

Little new at all this so all help greatly appreciated.

GraphQL.Client version 1.0.3

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