Fixes apollo-compiler rejecting valid queries, where a variable is used inside a directive applied directly to an operation. This is indeed allowed by spec.
Extended existing tests to check directives on fragment definitions as well, because I also found it a little surprising that they allow variables too.
Fixes apollo-compiler rejecting valid queries, where a variable is used inside a directive applied directly to an operation. This is indeed allowed by spec.
Extended existing tests to check directives on fragment definitions as well, because I also found it a little surprising that they allow variables too.