Implement LazyRelationLoader abstraction for GraphQL
This change introduces a new loader abstraction to be able to preload `has_many` and `has_one` associations of records lazily.
显示
- lib/gitlab/graphql/loaders/lazy_relation_loader.rb 74 个添加, 0 个删除lib/gitlab/graphql/loaders/lazy_relation_loader.rb
- lib/gitlab/graphql/loaders/lazy_relation_loader/registry.rb 75 个添加, 0 个删除lib/gitlab/graphql/loaders/lazy_relation_loader/registry.rb
- lib/gitlab/graphql/loaders/lazy_relation_loader/relation_proxy.rb 52 个添加, 0 个删除...ab/graphql/loaders/lazy_relation_loader/relation_proxy.rb
- lib/gitlab/graphql/loaders/lazy_relation_loader/top_n_loader.rb 83 个添加, 0 个删除...tlab/graphql/loaders/lazy_relation_loader/top_n_loader.rb
- lib/gitlab/graphql/pagination/connections.rb 4 个添加, 0 个删除lib/gitlab/graphql/pagination/connections.rb
- spec/lib/gitlab/graphql/loaders/lazy_relation_loader/registry_spec.rb 24 个添加, 0 个删除...lab/graphql/loaders/lazy_relation_loader/registry_spec.rb
- spec/lib/gitlab/graphql/loaders/lazy_relation_loader/relation_proxy_spec.rb 29 个添加, 0 个删除...aphql/loaders/lazy_relation_loader/relation_proxy_spec.rb
- spec/lib/gitlab/graphql/loaders/lazy_relation_loader_spec.rb 123 个添加, 0 个删除spec/lib/gitlab/graphql/loaders/lazy_relation_loader_spec.rb
想要评论请 注册 或 登录