Skip to main content

GetOneHandler

GetOneHandler<T> = (id, oDataConfig?, throwIfNotFound?) => Promise<T | null>

Crud handler for Get one operation

Type Parameters

T

T extends WithId = WithId

resource type

Parameters

id

string

required id parameter of the resource to get instance of

oDataConfig?

ODataConfig

optional ODataConfig that you can read to modify your return

throwIfNotFound?

boolean

Returns

Promise<T | null>

an instance of T or null