Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-23 06:08:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bdc2f52f4f3579730c17c925c36c25b64c1eae4
1bdc2f52
1 parent
0d2b948d
create category queries
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
front/src/Routes/Category/CategoryQueries.js
front/src/Routes/Category/CategoryQueries.js
0 → 100644
View file @
1bdc2f5
import
{
gql
}
from
"apollo-boost"
;
export
const
GET_CATEGORIRES
=
gql
`
{
getCategories {
id
name
}
}
`
;
export
const
ADD_CATEGORY
=
gql
`
mutation addCategory($name: String!) {
addCategory(name: $name) {
id
name
}
}
`
;
export
const
EDIT_CATEGORY
=
gql
`
mutation editCategory($name: String!) {
editCategory(name: $name) {
id
name
}
}
`
;
export
const
DELETE_CATEGORY
=
gql
`
mutation deleteCategory($name: String!) {
deleteCategory(name: $name)
}
`
;
Please
register
or
login
to post a comment