Skip to content

Field ignored if it has the same method name as another field #269

Open
@floge07

Description

@floge07

Hi,

the current versions can't seem to handle something like this:

[Name("getItem")
public object getItem(string id)
{
    ...
}

[Name("getItemByIdAndPath")
public object getItem(string id, string path)
{
    ...
}

In this case, we get this error:
Cannot query field "getItemByIdAndPath" on type "Query"

It seems it just gets ignored while parsing and doesn't exist.

Luckily, we only had one occurrence of this, and the fix is easy. But still, you should probably be made aware of this.

GraphQL: 8.2.1
GraphQL.Server.Transports.AspNetCore: 8.2.0
GraphQL.Convetions: 8.0.0

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