sdy

update graphql schema

type User {
id: ID!
avatarUrl: String
name: String
name: String!
email: String!
password: String
password: String!
emailSecret: String
phoneNum: String
phoneNum: String!
phoneSecret: String
bio: String
rooms: [Room]
createdAt: String
messages: [Message]
sender: Message
receiver: [Message]
from: Message
to: [Message]
}
type Room {
......@@ -30,8 +30,8 @@ type Category {
type Message {
id: ID!
text: String!
from: User!
to: User!
from: User
to: [User]
room: Room!
createdAt: String
updatedAt: String
......