This uses more sophisticated client query processing
Rather than skipping all queries that use the @client directive, we instead remove all such fields (and any arguments and fragments mentioned in the skipped sections) and then only skip the query if that then leaves us with an empty query. The query transformation is handled with a query printer.
显示
- config/known_invalid_graphql_queries.yml 0 个添加, 1 个删除config/known_invalid_graphql_queries.yml
- fixtures/lib/gitlab/graphql/queries/client_unused_fragment.graphql 7 个添加, 0 个删除...lib/gitlab/graphql/queries/client_unused_fragment.graphql
- fixtures/lib/gitlab/graphql/queries/mixed_client.query.graphql 7 个添加, 0 个删除...res/lib/gitlab/graphql/queries/mixed_client.query.graphql
- fixtures/lib/gitlab/graphql/queries/mixed_client_invalid.query.graphql 7 个添加, 0 个删除...gitlab/graphql/queries/mixed_client_invalid.query.graphql
- fixtures/lib/gitlab/graphql/queries/mixed_client_skipped_argument.graphql 11 个添加, 0 个删除...lab/graphql/queries/mixed_client_skipped_argument.graphql
- fixtures/lib/gitlab/graphql/queries/mixed_client_unused_fragment.graphql 11 个添加, 0 个删除...tlab/graphql/queries/mixed_client_unused_fragment.graphql
- fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql 3 个添加, 0 个删除fixtures/lib/gitlab/graphql/queries/thingy.fragment.graphql
- lib/gitlab/graphql/queries.rb 91 个添加, 3 个删除lib/gitlab/graphql/queries.rb
- spec/lib/gitlab/graphql/queries_spec.rb 42 个添加, 0 个删除spec/lib/gitlab/graphql/queries_spec.rb
加载中
想要评论请 注册 或 登录