Expose IDs in GraphQL as a GlobalID
This exposes all fields named `id` as GlobalIDs so they can be used across our entire GraphQL implementation. When the objects loaded are `ApplicationRecord`s. We'll use our existing batchloading to find them. Otherwise, we'll fall back to the default implementation of `GlobalID`: Calling the `.find` method on the class.
显示
- app/graphql/gitlab_schema.rb 25 个添加, 0 个删除app/graphql/gitlab_schema.rb
- app/graphql/types/base_object.rb 5 个添加, 0 个删除app/graphql/types/base_object.rb
- changelogs/unreleased/bvl-use-global-ids-graphql.yml 5 个添加, 0 个删除changelogs/unreleased/bvl-use-global-ids-graphql.yml
- doc/development/api_graphql_styleguide.md 18 个添加, 3 个删除doc/development/api_graphql_styleguide.md
- lib/gitlab/graphql/loaders/batch_model_loader.rb 1 个添加, 1 个删除lib/gitlab/graphql/loaders/batch_model_loader.rb
- spec/graphql/features/authorization_spec.rb 1 个添加, 1 个删除spec/graphql/features/authorization_spec.rb
- spec/graphql/gitlab_schema_spec.rb 58 个添加, 0 个删除spec/graphql/gitlab_schema_spec.rb
- spec/requests/api/graphql/gitlab_schema_spec.rb 12 个添加, 1 个删除spec/requests/api/graphql/gitlab_schema_spec.rb
- spec/requests/api/graphql/group_query_spec.rb 1 个添加, 1 个删除spec/requests/api/graphql/group_query_spec.rb
- spec/requests/api/graphql/namespace/projects_spec.rb 1 个添加, 1 个删除spec/requests/api/graphql/namespace/projects_spec.rb
加载中
想要评论请 注册 或 登录