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