diff options
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 ``` |