## Querying the api
talks {
title
description
}
speakers {
title
description
}
query {
speakers{
companyName
description
id
lastName
firstName
position
}
}
speaker will be either, included with .Include() or loaded with a DataLoader
talks {
title
description
speaker {
lastName
firstName
position
}
}
query {
talk(id: 1) {
description
title
speaker{
lastName
}
}
}
todo: check what is generated while running ef include or without include
mutation($talk: talkInput!) {
createTalk(talkInput: $talk) {
title
description
speakerId
}
}
And define the variable
{
"talk": {
"title" :"Awesome .Net Core",
"description" :"we'll talk about how cool it is .Net Core",
"speakerId": 2
}
}
query {
talks {
description
title
feedbacks {
comments
content
}
}
}
Or complete values with speakers
the cool thing is that 'speakers' is different depending on the context
query {
talks{
description
title
feedbacks{
comments
delivery
}
speakers{
companyName
}
}
}
will call different things depending on their definition in the schema
query {
speakers{
companyName
description
lastName
}
}