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
0224aa42
Commit
0224aa42
authored
Jun 13, 2019
by
Natalia Tepluhina
Committed by
Phil Hughes
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added naming convention for .graphql files
parent
e5d0b923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
doc/development/fe_guide/graphql.md
doc/development/fe_guide/graphql.md
+6
-0
No files found.
doc/development/fe_guide/graphql.md
View file @
0224aa42
...
...
@@ -18,6 +18,12 @@ To save query compilation at runtime, webpack can directly import `.graphql`
files. This allows webpack to preprocess the query at compile time instead
of the client doing compilation of queries.
To distinguish queries from mutations and fragments, the following naming convention is recommended:
-
`allUsers.query.graphql`
for queries;
-
`addUser.mutation.graphql`
for mutations;
-
`basicUser.fragment.graphql`
for fragments.
## Usage in Vue
To use Vue Apollo, import the
[
Vue Apollo
][
vue-apollo
]
plugin as well
...
...
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