Currently the Apollo language server parses everything in a gql tag as if it's an operation (or fragment). Type definitions shouldn't be validated against the rules for operations/fragments, so we should filter those out and narrow the scope of the function responsible for validation.
The expected result here is that diagnostics intended for operations aren't applied to type definitions.
Currently the Apollo language server parses everything in a gql tag as if it's an operation (or fragment). Type definitions shouldn't be validated against the rules for operations/fragments, so we should filter those out and narrow the scope of the function responsible for validation.
The expected result here is that diagnostics intended for operations aren't applied to type definitions.