-
David Bain authored
Also consider "@" when looking for the end of the field name, since GraphQL directives can follow a field name immediately without any arguments or aliases being involved. For example: query { me { firstName lastName @include(if: $expandedInfo) } } The strings.Index check for "@" is the third separator we look for. There's no reason to look separately, since we just want the first field name separator. Add test covering a GraphQL directive that immediately follows the field name. Co-authored-by: Dmitri Shuralyov <dmitri@shuralyov.com> GitHub-Pull-Request: https://github.com/shurcooL/graphql/pull/94
a4655423