Skip to main content
Solid Relay

Function: createFragment()

Call Signature

createFragment<TKey>(fragment, key, options?): DataStore<KeyTypeData<TKey, unknown>>

Defined in: index.d.mts:60

Type Parameters

TKey

TKey extends Readonly<{ $data?: unknown; $fragmentSpreads: unknown; }>

Parameters

fragment

GraphQLTaggedNode

key

Accessor<TKey>

options?

deferStream?

boolean

Returns

DataStore<KeyTypeData<TKey, unknown>>

Call Signature

createFragment<TKey>(fragment, key, options?): DataStore<KeyTypeData<TKey, unknown> | null | undefined>

Defined in: index.d.mts:63

Type Parameters

TKey

TKey extends Readonly<{ $data?: unknown; $fragmentSpreads: unknown; }>

Parameters

fragment

GraphQLTaggedNode

key

Accessor<TKey | null | undefined>

options?

deferStream?

boolean

Returns

DataStore<KeyTypeData<TKey, unknown> | null | undefined>

Last updated: 3/4/26, 9:44 AM

Edit this page on GitHub
Solid RelaySolidJS Bindings for Relay
Community
github