To run a mutation, you first call useUpdateItineraryMutation within a React component and pass it any options that fit your needs.
When your component renders, useUpdateItineraryMutation returns a tuple that includes:
A mutate function that you can call at any time to execute the mutation
An object with fields that represent the current status of the mutation's execution
Example
const [updateItineraryMutation, { data, loading, error }] = useUpdateItineraryMutation({ variables: { id:// value for 'id' itinerary: // value for 'itinerary' }, });
useUpdateItineraryMutation
To run a mutation, you first call
useUpdateItineraryMutationwithin a React component and pass it any options that fit your needs. When your component renders,useUpdateItineraryMutationreturns a tuple that includes:Example