summaryrefslogtreecommitdiff
path: root/app/graphql/mutations
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade GraphQL gem to 1.8.17Brett Walker2019-09-041-2/+2
| | | | | | | | | - Due to https://github.com/exAspArk/batch-loader/pull/32, we changed BatchLoader.for into BatchLoader::GraphQL.for - since our results are wrapped in a BatchLoader::GraphQL, calling `sync` during authorization is required to get real object - `graphql` now has it's own authorization system. Our `authorized?` method conflicted and required renaming
* Use AwardEmojis services in GraphQL mutationsLuke Duncalfe2019-08-213-30/+8
| | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/63372
* Include AuthorizeResource module for all mutationsgraphql-include-authorization-for-mutationsLuke Duncalfe2019-07-114-5/+1
| | | | | This makes our authorization calls available to all GraphQL mutations without the additional step of including the module first.
* GraphQL support for Notes created in discussions62826-graphql-note-mutationsLuke Duncalfe2019-07-101-0/+29
| | | | | | | | | | | | A new `discussion_id` argument on the `createNote` mutation allows people to create a note within that discussion. The ability to lazy-load Discussions has been added, so GraphQL.object_from_id can treat Discussions the same as AR objects and batch load them. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826 https://gitlab.com/gitlab-org/gitlab-ee/issues/9489
* GraphQL mutations for managing NotesLuke Duncalfe2019-07-107-0/+226
| | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
* GraphQL mutations for add, remove and toggle emoji62826-graphql-emoji-mutationsLuke Duncalfe2019-06-286-0/+146
| | | | | | | | | | | | Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
* Fix incorrect instances of `GraphQL::ID_TYPE`Bob Van Landuyt2019-06-031-1/+1
| | | | | | | | | | | Since the `GraphQL::ID_TYPE` usages should represent globally unique ids, this changes some fields for which this is not the case into strings. The `ID_TYPE` is a specialised, so this change should be backwards compatible. https://graphql-ruby.org/type_definitions/scalars.html
* Add field mergeRequests for project in GraphQLLin Jen-Shin2019-02-141-1/+2
| | | | And fix the tests so that it won't run into circular paths.
* Enable frozen string in app/graphql + app/findersgfyoung2018-09-112-0/+4
| | | | Partially addresses #47424.
* Add mutation toggling WIP state of merge requestsBob Van Landuyt2018-07-254-0/+93
| | | | | This is mainly the setup of mutations for GraphQL. Including authorization and basic return type-structure.
* Add a minimal GraphQL APINick Thomas2018-06-051-0/+0