- smoothed follow mouse animation - made mobile friendlier down to about 330px ish - added default social image - used smaller hero asset
60 lines
1.2 KiB
TypeScript
60 lines
1.2 KiB
TypeScript
export const schema = gql`
|
|
type Project {
|
|
id: String!
|
|
title: String!
|
|
description: String
|
|
code: String
|
|
mainImage: String
|
|
createdAt: DateTime!
|
|
updatedAt: DateTime!
|
|
user: User!
|
|
userId: String!
|
|
deleted: Boolean!
|
|
cadPackage: CadPackage!
|
|
socialCard: SocialCard
|
|
Comment: [Comment]!
|
|
Reaction(userId: String): [ProjectReaction]!
|
|
}
|
|
|
|
enum CadPackage {
|
|
openscad
|
|
cadquery
|
|
jscad
|
|
}
|
|
|
|
type Query {
|
|
projects(userName: String): [Project!]!
|
|
project(id: String!): Project
|
|
projectByUserAndTitle(userName: String!, projectTitle: String!): Project
|
|
}
|
|
|
|
input CreateProjectInput {
|
|
title: String
|
|
description: String
|
|
code: String
|
|
mainImage: String
|
|
userId: String!
|
|
cadPackage: CadPackage!
|
|
}
|
|
|
|
input UpdateProjectInput {
|
|
title: String
|
|
description: String
|
|
code: String
|
|
mainImage: String
|
|
userId: String
|
|
}
|
|
|
|
type Mutation {
|
|
createProject(input: CreateProjectInput!): Project!
|
|
forkProject(input: CreateProjectInput!): Project!
|
|
updateProject(id: String!, input: UpdateProjectInput!): Project!
|
|
updateProjectImages(
|
|
id: String!
|
|
mainImage64: String
|
|
socialCard64: String
|
|
): Project!
|
|
deleteProject(id: String!): Project!
|
|
}
|
|
`
|