update.api.ts 1.2 KB

1234567891011121314151617181920212223242526
  1. import * as Types from '#shared/graphql/types.ts';
  2. import gql from 'graphql-tag';
  3. import { UserAttributesFragmentDoc } from '../../../../../../shared/graphql/fragments/userAttributes.api';
  4. import { ErrorsFragmentDoc } from '../../../../../../shared/graphql/fragments/errors.api';
  5. import * as VueApolloComposable from '@vue/apollo-composable';
  6. import * as VueCompositionApi from 'vue';
  7. export type ReactiveFunction<TParam> = () => TParam;
  8. export const UserUpdateDocument = gql`
  9. mutation userUpdate($id: ID!, $input: UserInput!) {
  10. userUpdate(id: $id, input: $input) {
  11. user {
  12. ...userAttributes
  13. }
  14. errors {
  15. ...errors
  16. }
  17. }
  18. }
  19. ${UserAttributesFragmentDoc}
  20. ${ErrorsFragmentDoc}`;
  21. export function useUserUpdateMutation(options: VueApolloComposable.UseMutationOptions<Types.UserUpdateMutation, Types.UserUpdateMutationVariables> | ReactiveFunction<VueApolloComposable.UseMutationOptions<Types.UserUpdateMutation, Types.UserUpdateMutationVariables>> = {}) {
  22. return VueApolloComposable.useMutation<Types.UserUpdateMutation, Types.UserUpdateMutationVariables>(UserUpdateDocument, options);
  23. }
  24. export type UserUpdateMutationCompositionFunctionResult = VueApolloComposable.UseMutationReturn<Types.UserUpdateMutation, Types.UserUpdateMutationVariables>;