../public/snippets/graphql.gql
GraphQL is a query language for APIs and a runtime for executing those queries with your data.
With over three years of experience in GraphQL, I have a deep understanding of its schema, resolvers, and query execution.
I have used GraphQL to create efficient and flexible APIs, integrating with multiple data sources and optimizing client-server communication.
type Profile {
id: ID!
name: String!
experience: Int!
skills: [String!]!
}
type Project {
id: ID!
name: String!
description: String
status: ProjectStatus!
}
enum ProjectStatus {
PENDING
IN_PROGRESS
COMPLETED
}
union ProfileResult = Profile | Unauthenticated | ServerError
union ProjectResult = Project | ProjectNotFound | ServerError
input CreateProjectInput {
name: String!
description: String
status: ProjectStatus = PENDING
}
type Query {
getProfile(id: ID!): ProfileResult!
getProject(id: ID!): ProjectResult!
}
type Mutation {
createProject(input: CreateProjectInput!): Project!
updateProject(id: ID!, input: CreateProjectInput!): Project!
}
schema {
query: Query
mutation: Mutation
}