Skip to content

com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve subtype of [simple type, class foo.github.model.Query]: missing type id property '__typename' at [Source: UNKNOWN; byte offset: #UNKNOWN] #232

Open
@jeanouii

Description

@jeanouii

I've been struggling to generate a Github client from the GraphQL schema.
Some parts work but I can't find any ways to workaround this one. I'm on the latest version.

new GraphQLRequestGithub(GraphQLGithubRequests.getClient(), """
                    {
                        ... on ProjectV2Item {
                            id
                            __typename
                          fieldValueByName(name:"Order Id"){
                            ... on ProjectV2ItemFieldTextValue{
                              __typename
                              text
                            }
                          }
                        }
                      }
                    """, RequestType.query, "node",
                    InputParameter.newHardCodedParameter("Github", "id", "xxx", "ID", true, 0, false));
```

Could that be a bug with the Jackson integration?

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