Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
19f05266
Commit
19f05266
authored
Mar 30, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 3 suggestion(s) to 1 file(s)
parent
1085c21d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/development/api_graphql_styleguide.md
doc/development/api_graphql_styleguide.md
+3
-3
No files found.
doc/development/api_graphql_styleguide.md
View file @
19f05266
...
@@ -393,7 +393,7 @@ field :blob, type: Types::Snippets::BlobType,
...
@@ -393,7 +393,7 @@ field :blob, type: Types::Snippets::BlobType,
This will increment the
[
`complexity` score
](
#field-complexity
)
of the field by
`1`
.
This will increment the
[
`complexity` score
](
#field-complexity
)
of the field by
`1`
.
If a resolver calls Gitaly, it can be annotated with
If a resolver calls Gitaly, it can be annotated with
`BaseResolver.calls_gitaly!`
.
Doing this will pas
s
`calls_gitaly: true`
to any
`BaseResolver.calls_gitaly!`
.
This passe
s
`calls_gitaly: true`
to any
field that uses this resolver.
field that uses this resolver.
For example:
For example:
...
@@ -411,7 +411,7 @@ class BranchResolver < BaseResolver
...
@@ -411,7 +411,7 @@ class BranchResolver < BaseResolver
end
end
```
```
Then when we use it, any field that uses
`BranchResolver`
will have
the correct
Then when we use it, any field that uses
`BranchResolver`
has
the correct
value for
`calls_gitaly:`
.
value for
`calls_gitaly:`
.
### Exposing permissions for a type
### Exposing permissions for a type
...
@@ -1159,7 +1159,7 @@ When using resolvers, they can and should serve as the SSoT for field metadata.
...
@@ -1159,7 +1159,7 @@ When using resolvers, they can and should serve as the SSoT for field metadata.
All field options (apart from the field name) can be declared on the resolver.
All field options (apart from the field name) can be declared on the resolver.
These include:
These include:
-
`type`
(
this is
required - all resolvers must include a type annotation)
-
`type`
(required - all resolvers must include a type annotation)
-
`extras`
-
`extras`
-
`description`
-
`description`
-
Gitaly annotations (with
`calls_gitaly!`
)
-
Gitaly annotations (with
`calls_gitaly!`
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment