summaryrefslogtreecommitdiff
path: root/doc/development/api_graphql_styleguide.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 06:07:47 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 06:07:47 +0000
commitd2b64c37bdef067656fdc8deb4728a2fbc6c2729 (patch)
tree5cab5936f9c176f81d9749baf4ccbdcf94be9e64 /doc/development/api_graphql_styleguide.md
parent4560c92ab1954cf0416bafc45d1fa671fcacb3c3 (diff)
downloadgitlab-ce-d2b64c37bdef067656fdc8deb4728a2fbc6c2729.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/api_graphql_styleguide.md')
-rw-r--r--doc/development/api_graphql_styleguide.md14
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/development/api_graphql_styleguide.md b/doc/development/api_graphql_styleguide.md
index 6a88e7b71e2..4bbd1ddbfbe 100644
--- a/doc/development/api_graphql_styleguide.md
+++ b/doc/development/api_graphql_styleguide.md
@@ -798,11 +798,15 @@ that wraps around a query being executed. It is implemented as a module that use
Example: `Present`
```ruby
-module Present
- #... some code above...
-
- def self.use(schema_definition)
- schema_definition.instrument(:field, Instrumentation.new)
+module Gitlab
+ module Graphql
+ module Present
+ #... some code above...
+
+ def self.use(schema_definition)
+ schema_definition.instrument(:field, ::Gitlab::Graphql::Present::Instrumentation.new)
+ end
+ end
end
end
```