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-28 16:54:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
80b1648c30fa9bd9cc48142e0fb8124c8a00373b
80b1648c
1 parent
663cfcdb
create Category parent resovler
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
back/src/api/Category/Category.js
back/src/api/Category/Category.js
0 → 100644
View file @
80b1648
1
+
import
{
prisma
}
from
"../../utils"
;
2
+
3
+
export
default
{
4
+
Category
:
{
5
+
messages
:
(
parent
)
=>
6
+
prisma
.
category
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
messages
(),
7
+
},
8
+
};
Please
register
or
login
to post a comment