Get image upload to cloudinary with the same public id

This means we can put a consistent url in the head for the card image
This commit is contained in:
Kurt Hutten
2021-08-14 15:19:48 +10:00
parent 50e9ac61f8
commit 32155ba98c
17 changed files with 425 additions and 77 deletions

View File

@@ -0,0 +1,35 @@
export const schema = gql`
type SocialCard {
id: String!
projectId: String!
project: Project!
createdAt: DateTime!
updatedAt: DateTime!
url: String
outOfDate: Boolean!
}
type Query {
socialCards: [SocialCard!]!
socialCard(id: String!): SocialCard
}
input CreateSocialCardInput {
projectId: String!
url: String
outOfDate: Boolean!
}
input UpdateSocialCardInput {
projectId: String
url: String
outOfDate: Boolean
}
type Mutation {
createSocialCard(input: CreateSocialCardInput!): SocialCard!
updateSocialCard(id: String!, input: UpdateSocialCardInput!): SocialCard!
deleteSocialCard(id: String!): SocialCard!
updateSocialCardByProjectId(projectId: String!, url: String!): SocialCard!
}
`