[Objet: prototype nul] Appolo
// encountered when using complex type with graphql type can be fix with below
Mutation: {
postItem(_,payload, { dataSources }){
const parsedPayload = JSON.parse(JSON.stringify(payload));
return dataSources.api.postItem(parsedPayload);
}
}
Kirk-Patrick Brown