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:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
663cfcdb5760328ec601c1c7869812f955a52d76
663cfcdb
1 parent
3e2ec099
create Room parent resolver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
back/src/api/Room/Room.js
back/src/api/Room/Room.js
0 → 100644
View file @
663cfcd
import
{
prisma
}
from
"../../utils"
;
export
default
{
Room
:
{
categories
:
(
parent
)
=>
prisma
.
room
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
categories
(),
messages
:
(
parent
)
=>
prisma
.
room
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
messages
(),
participants
:
(
parent
)
=>
prisma
.
room
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
participants
(),
},
};
Please
register
or
login
to post a comment