Skip to content

@graphty/graphty-element / index / SourceRequestInit

Type Alias: SourceRequestInit ​

SourceRequestInit = RequestInit & object

Defined in: graph-io/dist/src/sources/types.d.ts:135

What ctx.fetch accepts beside fetch's own init. Experimental.

Type Declaration ​

allowStatus? ​

readonly optional allowStatus?: readonly number[]

Statuses outside 200 to 299 that are returned to the source instead of raised as coded issues (a query error body the source reads itself, a 304). Default none; 304 is always returned.

idempotent? ​

readonly optional idempotent?: boolean

Mark a POST as safe to retry (a read-only query). GET and HEAD always are.

retry? ​

readonly optional retry?: false

false: never retry this request.