Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HistoryStore

Hierarchy

  • HistoryStore

Index

Constructors

constructor

  • Parameters

    Returns HistoryStore

Properties

favorite

favorite: QueryStore

history

history: QueryStore

queries

queries: Array<QueryStoreItem>

Methods

editLabel

  • editLabel(query: any, variables: any, headers: any, operationName: any, label: any, favorite: any): void
  • Parameters

    • query: any
    • variables: any
    • headers: any
    • operationName: any
    • label: any
    • favorite: any

    Returns void

fetchAllQueries

  • Returns QueryStoreItem[]

shouldSaveQuery

  • shouldSaveQuery(query?: string, variables?: string, headers?: string, lastQuerySaved?: QueryStoreItem): boolean
  • Parameters

    • Optional query: string
    • Optional variables: string
    • Optional headers: string
    • Optional lastQuerySaved: QueryStoreItem

    Returns boolean

toggleFavorite

  • toggleFavorite(query: any, variables: any, headers: any, operationName: any, label: any, favorite: any): void
  • Parameters

    • query: any
    • variables: any
    • headers: any
    • operationName: any
    • label: any
    • favorite: any

    Returns void

updateHistory

  • updateHistory(query?: string, variables?: string, headers?: string, operationName?: string): void
  • Parameters

    • Optional query: string
    • Optional variables: string
    • Optional headers: string
    • Optional operationName: string

    Returns void

Generated using TypeDoc