Viewing:
# GraphQL schema example
#
# https://gqlgen.com/getting-started/
type Todo {
id: ID!
text: String!
done: Boolean!
user: User!
}
type User {
id: ID!
name: String!
}
type Query {
todos: [Todo!]!
inventory: [Inventory]
}
input NewTodo {
text: String!
userId: String!
}
interface Inventory {
SN: String
MAC: String
}
enum HardDriveType {
HDD
SSD
NVME
}
type HardDrive implements Inventory {
SN: String
MAC: String
Name: String
Type: HardDriveType
Capacity: Int
}
type ComputeNode implements Inventory {
SN: String
MAC: String
Name: String
Cores: Int
Cycles: Int
}
type Mutation {
createTodo(input: NewTodo!): Todo!
}