Skip to main content

getLatestQuery

getLatestQuery(query): Promise<null | string>

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')

Source

src/utils/safelist.ts:14