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 22:59:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
513074945d644cef16c639509bc077bb5013cfa0
51307494
1 parent
c86ab014
create getCategories
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
back/src/api/Category/getCategories/getCategories.graphql
back/src/api/Category/getCategories/getCategories.js
back/src/api/Category/getCategories/getCategories.graphql
0 → 100644
View file @
5130749
type Query {
getCategories: [Category]
}
back/src/api/Category/getCategories/getCategories.js
0 → 100644
View file @
5130749
import
{
prisma
}
from
"../../../utils"
;
export
default
{
Query
:
{
getCategories
:
async
(
_
,
__
)
=>
{
return
prisma
.
category
.
findMany
();
},
},
};
Please
register
or
login
to post a comment