Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

[Object: null prototype] 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);
  }
}
 
PREVIOUS NEXT
Tagged: #null #appolo
ADD COMMENT
Topic
Name
1+4 =