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-06-03 23:14:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf3a678b51489d2ecc1d5e52f9bf150723f8069f
bf3a678b
1 parent
62191a72
add deleteCategory resolver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
back/src/api/Category/deleteCategory/deleteCategory.js
back/src/api/Category/deleteCategory/deleteCategory.js
View file @
bf3a678
...
...
@@ -4,6 +4,11 @@ export default {
Mutation
:
{
deleteCategory
:
async
(
_
,
args
)
=>
{
const
{
name
}
=
args
;
return
prisma
.
category
.
delete
({
where
:
{
name
,
},
});
},
},
};
...
...
Please
register
or
login
to post a comment