venmjs
Version:
This is a tool 🔧 that can be installed in your terminal at any time ⛏️ it was made for beginners and even for experts, for his utilities, and for a simple creation process 🧨. Every web developer knows how frustrating is to deal with the creation of a ne
20 lines (17 loc) • 414 B
JavaScript
export default `
type User {
id: Int!
username: String!
createdAt: String!
updatedAt: String!
}
type Query {
allUsers: [User!]!
getUser(username: String!): User
}
type Mutation {
createUser(username: String!): User
updateUser(username: String!, newUsername: String!): [Int!]!
deleteUser(username: String!): Int!
}
`