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 17:35:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b6909ecb9661eb6aaf2acfbe9315bbb42f5f86a3
b6909ecb
1 parent
5b9b7edc
create Message parent resolver
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
back/src/api/Message/Message.js
back/src/api/Message/Message.js
0 → 100644
View file @
b6909ec
1
+
import
{
prisma
}
from
"../../utils"
;
2
+
3
+
export
default
{
4
+
Message
:
{
5
+
sender
:
(
parent
)
=>
6
+
prisma
.
message
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
sender
(),
7
+
room
:
(
parent
)
=>
8
+
prisma
.
message
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
room
(),
9
+
},
10
+
};
Please
register
or
login
to post a comment