To run a mutation, you first call useCreateItineraryMutation within a React component and pass it any options that fit your needs.
When your component renders, useCreateItineraryMutation 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 [createItineraryMutation, { data, loading, error }] = useCreateItineraryMutation({ variables: { itinerary:// value for 'itinerary' profileId: // value for 'profileId' }, });
useCreateItineraryMutation
To run a mutation, you first call
useCreateItineraryMutationwithin a React component and pass it any options that fit your needs. When your component renders,useCreateItineraryMutationreturns a tuple that includes:Example