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-01 13:22:29 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6aa2fe46a774d558e02d1bb63f941df3ec411336
6aa2fe46
1 parent
83779130
create subMessage
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
back/src/api/Chat/subMessage/subMessage.graphql
back/src/api/Chat/subMessage/subMessage.js
back/src/api/Chat/subMessage/subMessage.graphql
0 → 100644
View file @
6aa2fe4
type Subscription {
subMessage: Message
}
back/src/api/Chat/subMessage/subMessage.js
0 → 100644
View file @
6aa2fe4
import
{
ONE_TO_ONE_MESSAGE
}
from
"../../../topics"
;
export
default
{
Subscription
:
{
subMessage
:
{
subscribe
:
async
(
_
,
__
,
{
pubsub
})
=>
{
return
pubsub
.
asyncIterator
(
ONE_TO_ONE_MESSAGE
);
},
},
},
};
Please
register
or
login
to post a comment