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
1
+
type Subscription {
2
+
subMessage: Message
3
+
}
back/src/api/Chat/subMessage/subMessage.js
0 → 100644
View file @
6aa2fe4
1
+
import
{
ONE_TO_ONE_MESSAGE
}
from
"../../../topics"
;
2
+
3
+
export
default
{
4
+
Subscription
:
{
5
+
subMessage
:
{
6
+
subscribe
:
async
(
_
,
__
,
{
pubsub
})
=>
{
7
+
return
pubsub
.
asyncIterator
(
ONE_TO_ONE_MESSAGE
);
8
+
},
9
+
},
10
+
},
11
+
};
Please
register
or
login
to post a comment