diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 06:07:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 06:07:47 +0000 |
commit | d2b64c37bdef067656fdc8deb4728a2fbc6c2729 (patch) | |
tree | 5cab5936f9c176f81d9749baf4ccbdcf94be9e64 /doc/development/api_graphql_styleguide.md | |
parent | 4560c92ab1954cf0416bafc45d1fa671fcacb3c3 (diff) | |
download | gitlab-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.md | 14 |
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 ``` |