Base schema:
type Canvas @model {
id: ID!
clientId: String!
data: String!
}
type Mutation {
createCanvas(input: CreateCanvasInput!): Canvas
updateCanvas(input: UpdateCanvasInput!): Canvas
deleteCanvas(input: DeleteCanvasInput!): Canvas
}
type Query {
getCanvas(id: ID!): Canvas
listCanvass(filter: ModelCanvasFilterInput, limit: Int, nextToken: String): ModelCanvasConnection
}
type Subscription {
onCreateCanvas: Canvas @aws_subscribe(mutations: ["createCanvas"])
onUpdateCanvas: Canvas @aws_subscribe(mutations: ["updateCanvas"])
}
Base schema
type ImageData {
data: String!
}
type Query {
fetchImage(imageInfo: String!): ImageData
}
Base schema:
type Talk @model {
id: ID!
title: String!
speakerName: String!
clientId: ID
speakerImage: String
comments: [Comment] @connection(name: "TalkComments")
}
type Comment @model {
id: ID!
talkId: ID!
clientId: ID
talk: Talk @connection(sortField: "createdAt", name: "TalkComments", keyField: "talkId")
text: String
createdAt: String
createdBy: String
}
type ModelCommentConnection {
items: [Comment]
nextToken: String
}
type Subscription {
onCreateCommentWithId(talkId: ID!): Comment
@aws_subscribe(mutations: ["createComment"])
}
type Query {
listCommentsForTalk(talkId: ID!): ModelCommentConnection
}
Base schema:
type DrumMachine @model {
id: ID!
clientId: ID!
beats: String!
name: String!
}
type Query {
getDrumMachine(id: ID!): DrumMachine
listDrumMachines(filter: ModelDrumMachineFilterInput, limit: Int, nextToken: String): ModelDrumMachineConnection
}
type Mutation {
createDrumMachine(input: CreateDrumMachineInput!): DrumMachine
updateDrumMachine(input: UpdateDrumMachineInput!): DrumMachine
deleteDrumMachine(input: DeleteDrumMachineInput!): DrumMachine
}
type Subscription {
onCreateDrumMachine: DrumMachine @aws_subscribe(mutations: ["createDrumMachine"])
onUpdateDrumMachine: DrumMachine @aws_subscribe(mutations: ["updateDrumMachine"])
}
Base schema:
type Query {
getTranslatedSentence(sentence: String!, code: String!): TranslatedSentence
}
type TranslatedSentence {
sentence: String!
}
Base schema:
type Talk @model {
id: ID!
name: String!
speakerName: String!
speakerBio: String!
time: String
timeStamp: String
date: String
location: String
summary: String!
twitter: String
github: String
speakerAvatar: String
comments: [Comment] @connection(name: "TalkComments")
}
type Comment @model {
id: ID!
talkId: ID
talk: Talk @connection(sortField: "createdAt", name: "TalkComments", keyField: "talkId")
message: String
createdAt: String
createdBy: String
deviceId: ID
}
type Report @model {
id: ID!
commentId: ID!
comment: String!
talkTitle: String!
deviceId: ID
}
type ModelCommentConnection {
items: [Comment]
nextToken: String
}
type Query {
listCommentsByTalkId(talkId: ID!): ModelCommentConnection
}
type Subscription {
onCreateCommentWithId(talkId: ID!): Comment
@aws_subscribe(mutations: ["createComment"])
}
GitHub repoithub.com/dabit3/sms-graphql-ui/settings
Base schema:
type SMS {
originationNumber: String!
messageBody: String!
id: ID!
}
type Query {
getSMS(originationNumber: String!): SMS
listSMS(filter: TableSMSFilterInput, limit: Int, nextToken: String): SMSConnection
}
type Subscription {
onCreateSMS(originationNumber: String, messageBody: String): SMS
@aws_subscribe(mutations: ["createSMS"])
onUpdateSMS(originationNumber: String, messageBody: String): SMS
@aws_subscribe(mutations: ["updateSMS"])
onDeleteSMS(originationNumber: String, messageBody: String): SMS
@aws_subscribe(mutations: ["deleteSMS"])
}
type Mutation {
createSMS(input: CreateSMSInput!): SMS
updateSMS(input: UpdateSMSInput!): SMS
deleteSMS(input: DeleteSMSInput!): SMS
}
Base schema:
type Post @model {
id: ID!
clientId: ID!
markdown: String!
title: String!
createdAt: String
}