graphql-go / graphql-go/graphql

Aliases are not supported in map keys

Open
#645 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

when i query

```
{
hello{
alias1: id
alias2: id
}
}
```

and submit the map
```
{
hello{
alias1: "1"
alias2: "2"
}
}
```

it returns nil for both aliases

Expected result is alias1 :"1" and "alias2": "2"

There is another case... when i query
```
{
hello{
id
alias2: id
}
}
```

and submit the map
```
{
hello{
id: "1"
alias2: "2"
}
}
```

it returns alias2: "1" and id: "1"

Expected result is id :"1" and "alias2": "2"

both results are wrong!

It may be covered in PR https://github.com/graphql-go/graphql/pull/630 but i have not tested all possible cases

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.