next-drupal / getResourceFromContext

Function: getResourceFromContext()

getResourceFromContext\<T>(type, context, options?): Promise\<T>

Defined in: packages/next-drupal/src/deprecated/get-resource.ts:13

Type Parameters

T extends JsonApiResource

Parameters

type

string

context

GetStaticPropsContext

options?

accessToken

AccessToken

deserialize

boolean

isVersionable

boolean

params

JsonApiParams

prefix

string

Returns

Promise\<T>