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-04-14 03:03:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf65d84dd5a2310d58f63cd30cc35c71b3685e9e
bf65d84d
1 parent
8844aa23
init deleteCategory
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
back/src/api/Category/deleteCategory/deleteCategory.graphql
back/src/api/Category/deleteCategory/deleteCategory.js
back/src/api/Category/deleteCategory/deleteCategory.graphql
0 → 100644
View file @
bf65d84
1
+
type Mutation {
2
+
deleteCategory(id: String!): Boolean!
3
+
}
back/src/api/Category/deleteCategory/deleteCategory.js
0 → 100644
View file @
bf65d84
1
+
import
{
prisma
}
from
"../../../middlewares"
;
2
+
3
+
export
default
{
4
+
Mutation
:
{
5
+
deleteCategory
:
async
(
_
,
args
)
=>
{
6
+
const
{
id
}
=
args
;
7
+
},
8
+
},
9
+
};
Please
register
or
login
to post a comment