Created
August 20, 2018 09:28
-
-
Save arnabkd/58b926b2c126fca17ad62998ac1c2e03 to your computer and use it in GitHub Desktop.
Solved by using aliases and unique key (email)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation{ | |
speaker: createSpeaker(data: { | |
name: "Name" | |
email: "example@example.com" | |
workplace_url: "some_workplace_url" | |
}){ | |
id | |
} | |
talkOne: createTalk(data: { | |
speaker: { | |
connect: { | |
email: "example@example.com" | |
} | |
} | |
title: "Test talk one" | |
session_duration: 45 | |
}){ | |
id | |
title | |
session_duration | |
speaker { | |
name | |
} | |
} | |
talkTwo: createTalk(data: { | |
speaker: { | |
connect: { | |
email: "example@example.com" | |
} | |
} | |
title: "Test talk two" | |
session_duration: 30 | |
}){ | |
id | |
title | |
session_duration | |
speaker { | |
name | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment