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-27 21:11:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
36ee43379ce4cd71e726a5f945b0eb434417bb68
36ee4337
1 parent
13b28709
create common queries in User model
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
back/src/api/User/User.js
back/src/api/User/User.js
0 → 100644
View file @
36ee433
import
{
prisma
}
from
"../../utils"
;
export
default
{
User
:
{
rooms
:
({
id
})
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
id
}
}).
rooms
(),
messages
:
({
id
})
=>
prisma
.
user
.
findOne
({
where
:
{
id
:
id
}
}).
messages
(),
},
};
Please
register
or
login
to post a comment