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-20 12:17:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29a31451ea054ef903b3c2801b44e2bc053ca16c
29a31451
1 parent
3f2ebb8e
create room queries
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
front/src/Routes/Room/RoomQueries.js
front/src/Routes/Room/RoomQueries.js
0 → 100644
View file @
29a3145
1
+
import
{
gql
}
from
"apollo-boost"
;
2
+
3
+
export
const
GET_ROOMS
=
gql
`
4
+
query {
5
+
getRooms {
6
+
name
7
+
}
8
+
}
9
+
`
;
10
+
11
+
export
const
CREATE_ROOM
=
gql
`
12
+
mutation createRoom($name: String!) {
13
+
createRoom(name: $name) {
14
+
name
15
+
}
16
+
}
17
+
`
;
Please
register
or
login
to post a comment