Tag: mutation
-
Mutation Chaining in apollo superGraph
0 I need to insert record in through one SubGraph and based on returned Id I want to update record in another SubGraph. Looks like apollo doesn’t support mutation chaining directly (can’t pass Id from one mutation to the other one). Can we do a query, get an Id and then use that in a…
-
Make a mutation call in angular (getting “Http failure response for https://localhost:8080/graphql: 400 Bad Request”)
0 Im new to both GraphQL and angular im trying to follow the documentation but not able to make a mutation. Below is the ts file code export const USER_SIGNUP = gql` mutation AddUser($userInput: UserInput) { addUser(userInput: $userInput) { id name email password } } `; import { Component } from ‘@angular/core’; import { Apollo…
-
issue with graphql-request react onClick handler
0 I am using graphql-request to execute a mutation in an onClick handler in a react application The mutation executes successfully (I can verify by looking at the logs in the backend). The code in onClick handler (loginHandler) following the gqlClient.request never executes (console.log or alert) here is the code, any idea what am I…