qsys
06/13/2018, 2:02 PMmutation createBookingForAgent($agent: BookingForAgentagentAgent!,
$booking: BookingForAgentbookingBooking!) {
createBookingForAgent(
agent: $agent
booking: $booking
) {
id
}
}
I can't make this work properly: I pass the ID of the agent and booking (which is enough to know which agent/booking it is, it are one-to-one relations):
GraphQL error: Variable '$booking' expected value of type 'BookingForAgentbookingBooking!' but got: "cje8yzetf94i301976ne1mx3y". Reason: Expected 'BookingForAgentbookingBooking', found not an object. (line 1, column 123):
mutation createBookingForAgent($agent: BookingForAgentagentAgent!, $agentPaymentStatuses: String, $agentStatuses: String, $booking: BookingForAgentbookingBooking!)