Vue OpenAPI Query Documentation
    Preparing search index...

    Interface CacheInvalidationOptions

    Options for controlling automatic cache invalidation after mutations.

    interface CacheInvalidationOptions {
        dontInvalidate?: boolean;
        dontUpdateCache?: boolean;
        invalidateOperations?:
            | Record<string, Record<string, string | undefined>>
            | string[];
        refetchEndpoints?: Refetchable[];
    }
    Index

    Properties

    dontInvalidate?: boolean

    Skip automatic cache invalidation.

    false
    
    dontUpdateCache?: boolean

    Skip automatic cache update for PUT/PATCH responses.

    false
    
    invalidateOperations?:
        | Record<string, Record<string, string | undefined>>
        | string[]

    Additional operation IDs to invalidate after mutation succeeds. Array of operation name strings, or map of operation name → path params.

    ['listPets']
    
    { getPet: { petId: '123' } }
    
    refetchEndpoints?: Refetchable[]

    Specific query endpoints to refetch after mutation succeeds.