Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Room @model {
- id: ID!
- createdAt: String
- updatedAt: String
- messages: [Message] @connection(name: "RoomMessages", keyField: "roomId", sortField: "when")
- }
- type Message @model {
- id: ID!
- content: String!
- when: String!
- roomId: ID
- room: Room @connection(name: "RoomMessages", keyField: "roomId")
- }
Add Comment
Please, Sign In to add comment