Add BaseEdge base class
See https://gitlab.com/gitlab-org/gitlab/-/issues/341911 This adds a new base class for edges that uses our custom `BaseField` as the standard field class. We do not need to customize authorization for edges, since nodes are redacted by our connections before edges are constructed from them. All our edges should inherit from this base class in order to use field customizations. Changelog: changed
显示
- app/graphql/types/base_edge.rb 7 个添加, 0 个删除app/graphql/types/base_edge.rb
- app/graphql/types/base_field.rb 2 个添加, 0 个删除app/graphql/types/base_field.rb
- rubocop/cop/graphql/authorize_types.rb 1 个添加, 1 个删除rubocop/cop/graphql/authorize_types.rb
- spec/graphql/types/base_edge_spec.rb 76 个添加, 0 个删除spec/graphql/types/base_edge_spec.rb
app/graphql/types/base_edge.rb
0 → 100644
spec/graphql/types/base_edge_spec.rb
0 → 100644
想要评论请 注册 或 登录