Skip to main content

getLatestQuery

getLatestQuery(query): Promise<null | string>

Defined in: src/utils/safelist.ts:14

Gets the latest version of a query from the Safelist.

Parameters

query

string

The operation name of the query

Returns

Promise<null | string>

See

Safelisted Queries

Example

const GET_FULL_USER_PROFILE_QUERY = await getLatestQuery('getFullUserProfile')