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:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
62191a722e7ec7a0759e318a040e83800bf9630e
62191a72
1 parent
00b344ee
update addCategory resolver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
back/src/api/Category/addCategory/addCategory.js
back/src/api/Category/addCategory/addCategory.js
View file @
62191a7
...
...
@@ -4,6 +4,12 @@ export default {
Mutation
:
{
addCategory
:
async
(
_
,
args
)
=>
{
const
{
name
}
=
args
;
const
newCategory
=
await
prisma
.
category
.
create
({
data
:
{
name
,
},
});
return
newCategory
;
},
},
};
...
...
Please
register
or
login
to post a comment