Commit 4000aba0 authored by Stan Hu's avatar Stan Hu

Merge branch 'docs-graphql-api-style-guide' into 'master'

Specify Full Namespace to Instrumentation in Graphql Style Example

See merge request gitlab-org/gitlab!28145
parents 3c6ac64e 82beb4f4
......@@ -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
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment