-
- Downloads
Add a minimal GraphQL API
parent
67dc43db
No related branches found
No related tags found
Showing
- .rubocop.yml 1 addition, 0 deletions.rubocop.yml
- Gemfile 6 additions, 0 deletionsGemfile
- Gemfile.lock 17 additions, 0 deletionsGemfile.lock
- app/controllers/graphql_controller.rb 49 additions, 0 deletionsapp/controllers/graphql_controller.rb
- app/graphql/gitlab_schema.rb 11 additions, 0 deletionsapp/graphql/gitlab_schema.rb
- app/graphql/loaders/base_loader.rb 24 additions, 0 deletionsapp/graphql/loaders/base_loader.rb
- app/graphql/loaders/full_path_loader.rb 23 additions, 0 deletionsapp/graphql/loaders/full_path_loader.rb
- app/graphql/loaders/iid_loader.rb 35 additions, 0 deletionsapp/graphql/loaders/iid_loader.rb
- app/graphql/mutations/.keep 0 additions, 0 deletionsapp/graphql/mutations/.keep
- app/graphql/types/merge_request_type.rb 50 additions, 0 deletionsapp/graphql/types/merge_request_type.rb
- app/graphql/types/mutation_type.rb 5 additions, 0 deletionsapp/graphql/types/mutation_type.rb
- app/graphql/types/project_type.rb 62 additions, 0 deletionsapp/graphql/types/project_type.rb
- app/graphql/types/query_type.rb 38 additions, 0 deletionsapp/graphql/types/query_type.rb
- app/graphql/types/time_type.rb 8 additions, 0 deletionsapp/graphql/types/time_type.rb
- config/dependency_decisions.yml 6 additions, 0 deletionsconfig/dependency_decisions.yml
- config/routes/api.rb 3 additions, 0 deletionsconfig/routes/api.rb
- lib/gitlab/graphql/authorize.rb 55 additions, 0 deletionslib/gitlab/graphql/authorize.rb
- spec/controllers/graphql_controller_spec.rb 58 additions, 0 deletionsspec/controllers/graphql_controller_spec.rb
- spec/graphql/gitlab_schema_spec.rb 27 additions, 0 deletionsspec/graphql/gitlab_schema_spec.rb
- spec/graphql/loaders/full_path_loader_spec.rb 38 additions, 0 deletionsspec/graphql/loaders/full_path_loader_spec.rb
... | ... | @@ -93,6 +93,12 @@ gem 'grape', '~> 1.0' |
gem 'grape-entity', '~> 0.7.1' | ||
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors' | ||
# GraphQL API | ||
gem 'graphql', '~> 1.7.14' | ||
gem 'graphql-batch', '~> 0.3.9' | ||
gem 'graphql-preload', '~> 2.0.0' | ||
gem 'graphiql-rails', '~> 1.4.10' | ||
# Disable strong_params so that Mash does not respond to :permitted? | ||
gem 'hashie-forbidden_attributes' | ||
... | ... |
app/controllers/graphql_controller.rb
0 → 100644
app/graphql/gitlab_schema.rb
0 → 100644
app/graphql/loaders/base_loader.rb
0 → 100644
app/graphql/loaders/full_path_loader.rb
0 → 100644
app/graphql/loaders/iid_loader.rb
0 → 100644
app/graphql/mutations/.keep
0 → 100644
app/graphql/types/merge_request_type.rb
0 → 100644
app/graphql/types/mutation_type.rb
0 → 100644
app/graphql/types/project_type.rb
0 → 100644
app/graphql/types/query_type.rb
0 → 100644
app/graphql/types/time_type.rb
0 → 100644
lib/gitlab/graphql/authorize.rb
0 → 100644
spec/controllers/graphql_controller_spec.rb
0 → 100644
spec/graphql/gitlab_schema_spec.rb
0 → 100644