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:07:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdc8d215a4379128e9b91b07a32e34a7c09cc44d
fdc8d215
1 parent
5bcba266
update deleteCategory query
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
back/src/api/Category/deleteCategory/deleteCategory.graphql
back/src/api/Category/deleteCategory/deleteCategory.js
back/src/api/Category/deleteCategory/deleteCategory.graphql
View file @
fdc8d21
type Mutation {
deleteCategory(
id
: String!): Boolean!
deleteCategory(
name
: String!): Boolean!
}
...
...
back/src/api/Category/deleteCategory/deleteCategory.js
View file @
fdc8d21
...
...
@@ -3,7 +3,7 @@ import { prisma } from "../../../utils";
export
default
{
Mutation
:
{
deleteCategory
:
async
(
_
,
args
)
=>
{
const
{
id
}
=
args
;
const
{
name
}
=
args
;
},
},
};
...
...
Please
register
or
login
to post a comment