All checks were successful
Publish Docker Image / Publish Docker Image (push) Successful in 39s
20 lines
324 B
TypeScript
Executable File
20 lines
324 B
TypeScript
Executable File
export const schema = gql`
|
|
type Portrait {
|
|
id: Int!
|
|
fileId: URL!
|
|
}
|
|
|
|
type Query {
|
|
portrait: Portrait @skipAuth
|
|
}
|
|
|
|
input CreatePortraitInput {
|
|
fileId: URL!
|
|
}
|
|
|
|
type Mutation {
|
|
createPortrait(input: CreatePortraitInput!): Portrait! @requireAuth
|
|
deletePortrait: Portrait! @requireAuth
|
|
}
|
|
`
|