graphql-dotnet / graphql-dotnet/conventions

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

Open
#269 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
228
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.