schema: buildSchema(`
type webstats {
Product: String
IPAddress: String
Date: String
Time: String
Reverse: String
}
type regs {
Name: String
Address: String
Telephone: String
Fax: String
Email: String
Product: String
Serial: String
Password: String
UserName: String
Date: String
Time: String
Data: String
Question: String
Credit: Int
Token: String
Tag: String
Active: Int
EmailUpdates: Int
EmailValidated: Int
Expired: Int
Version: String
}
type supporttickets {
Product: String
Version: String
Date: String
Name: String
Email: String
Type: String
Department: String
Status: String
Ticket: String
Response: String
Description: String
FixedVersion: String
DueDate: String
Prioity: Int
DateFinished: String
}
type task {
Title: String
Product: String
Owner: String
Description: String
Date: String
Time: String
Email: String
AppID: String
Confirmed: Int
Private: Int
Duration: Int
Alarm: Int
}
type test {
name: String
age: Int
}
type rootQuery
{
version: String!
testSingleObject: test
testMultipleObjects: [test]
}
type rootMutation {
webStats(authtoken: String): [webstats]
registrations(authtoken: String) : [regs]
supportTickets(authtoken: String) : [supporttickets]
tasks(authtoken: String) : [task]
}
schema {
query: rootQuery
mutation: rootMutation
}
`)