summaryrefslogtreecommitdiff
path: root/doc/api/graphql
Commit message (Collapse)AuthorAgeFilesLines
* Expose permissions on types in GraphQLBob Van Landuyt2018-06-281-1/+1
| | | | | This adds a reusable way to expose permissions for a user to types in GraphQL.
* Allow querying a single MR within a projectBob Van Landuyt2018-06-151-3/+1
| | | | | | | | This allows the user to get a single MR nested in a GraphQL project query. Since we need the full path and the iid anyway, this makes more sense than having a root query that needs the full path as well.
* Initial setup GraphQL using graphql-ruby 1.8Bob Van Landuyt2018-06-061-13/+21
| | | | | | | | | - All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
* Add `present_using` to typesBob Van Landuyt2018-06-051-0/+34
By specifying a presenter for the object type, we can keep the logic out of `GitlabSchema`. The presenter gets initialized using the object being presented, and the context (including the `current_user`).