Skip to content

Instantly share code, notes, and snippets.

@ivancorrales
Created January 23, 2019 07:02
Show Gist options
  • Save ivancorrales/026bdd5b38fb3cf98e79e144ed8fc00e to your computer and use it in GitHub Desktop.
Save ivancorrales/026bdd5b38fb3cf98e79e144ed8fc00e to your computer and use it in GitHub Desktop.
mutation{
createRoom1:addRoom(room:{id:"room01",capacity:5}){
id
}
createRoom2: addRoom(room:{id:"room02",capacity:6}){
id
capacity
}
createRoom3: addRoom(room:{id:"room03",capacity:8}){
capacity
}
createEmployeeJohn: addEmployee(employee:{
identifier:"employee001"
firstname:"John"
lastname:"Doe"
email: "[email protected]"
salary: 45000.23
}){
identifier
salary
}
createEmployeeJane: addEmployee(employee:{
identifier:"employee002"
firstname:"Jane"
lastname:"Doe"
email: "[email protected]"
salary: 65000.23
}){
identifier
salary
}
meeting1: addMeeting(meeting:{
id: "meeting001"
subject:"Cloud engine"
type:brainstorming
roomId:"room01"
conferenceLink: "http://chat"
when:"10/02/2019 11:15"
organizerId:"employee001"
}){
id
subject
}
invitationJane: sendInvitation(invitation:{
meetingId:"meeting001"
employeeId:"employee002"
}){
id
}
invitationDavidHanks: sendInvitation(invitation:{
meetingId:"meeting001"
externalWorker: {
firstname:"David"
lastname:"Hanks"
email:"[email protected]"
company:"google"
}
}){
id
}
invitationLarryMcDonald: sendInvitation(invitation:{
meetingId:"meeting001"
externalWorker: {
firstname:"Larry"
lastname:"Mc Donald"
email:"[email protected]"
company:"google"
}
}){
id
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment