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
be5d6507
Commit
be5d6507
authored
Mar 11, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document use of BaseResolver#calls_gitaly!
parent
dfad880d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
doc/development/api_graphql_styleguide.md
doc/development/api_graphql_styleguide.md
+3
-1
No files found.
doc/development/api_graphql_styleguide.md
View file @
be5d6507
...
...
@@ -1137,9 +1137,10 @@ 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.
These include:
-
`type`
(this is
particularly important, and is planned to be mandatory
)
-
`type`
(this is
required - all resolvers must include a type annotation
)
-
`extras`
-
`description`
-
Gitaly annotations (with
`calls_gitaly!`
)
Example:
...
...
@@ -1149,6 +1150,7 @@ module Resolvers
type
Types
::
MyType
,
null:
true
extras
[
:lookahead
]
description
'Retrieve a single MyType'
calls_gitaly!
end
end
```
...
...
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