sdy

create room queries

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 +`;