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-08-30 23:36:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
48d1043260fd0c98af996b60c0aaaf1b96c17b04
48d10432
1 parent
9430af5d
create Group.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
back/src/api/Group/Group.js
back/src/api/Group/Group.js
0 → 100644
View file @
48d1043
import
{
prisma
}
from
"../../utils"
;
export
default
{
Group
:
{
participants
:
(
parent
)
=>
prisma
.
group
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
participants
(),
messages
:
(
parent
)
=>
prisma
.
message
.
findOne
({
where
:
{
id
:
parent
.
id
}
}).
messages
(),
},
};
Please
register
or
login
to post a comment