graphql-tools-monorepo / links/src / AwaitVariablesLink
Class: AwaitVariablesLink
links/src.AwaitVariablesLink
Hierarchy
-
ApolloLink
↳
AwaitVariablesLink
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AwaitVariablesLink(request?
): AwaitVariablesLink
Parameters
Name | Type |
---|---|
request? | RequestHandler |
Returns
Inherited from
apollo.ApolloLink.constructor
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:10
Properties
getMemoryInternals
• Optional
getMemoryInternals: () => unknown
Can be provided by a link that has an internal cache to report it’s memory details.
Type declaration
▸ (): unknown
Returns
unknown
Inherited from
apollo.ApolloLink.getMemoryInternals
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:30
left
• Optional
Readonly
left: ApolloLink
Used to iterate through all links that are concatenations or split
links.
Inherited from
apollo.ApolloLink.left
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:20
right
• Optional
Readonly
right: ApolloLink
Used to iterate through all links that are concatenations or split
links.
Inherited from
apollo.ApolloLink.right
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:25
Methods
concat
▸ concat(next
): ApolloLink
Parameters
Name | Type |
---|---|
next | RequestHandler | ApolloLink |
Returns
ApolloLink
Inherited from
apollo.ApolloLink.concat
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:12
request
▸ request(operation
, forward
): Observable
<FetchResult
<Record
<string
, any
>, Record
<string
, any
>, Record
<string
, any
>>>
Parameters
Name | Type |
---|---|
operation | Operation |
forward | NextLink |
Returns
Observable
<FetchResult
<Record
<string
, any
>, Record
<string
, any
>, Record
<string
, any
>>>
Overrides
apollo.ApolloLink.request
Defined in
packages/links/src/AwaitVariablesLink.ts:30
setOnError
▸ setOnError(fn
): this
Parameters
Name | Type |
---|---|
fn | (error : any , observer? : Observer <FetchResult >) => false | void |
Returns
this
Inherited from
apollo.ApolloLink.setOnError
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:15
split
▸ split(test
, left
, right?
): ApolloLink
Parameters
Name | Type |
---|---|
test | (op : Operation ) => boolean |
left | RequestHandler | ApolloLink |
right? | RequestHandler | ApolloLink |
Returns
ApolloLink
Inherited from
apollo.ApolloLink.split
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:11
concat
▸ concat(first
, second
): ApolloLink
Parameters
Name | Type |
---|---|
first | RequestHandler | ApolloLink |
second | RequestHandler | ApolloLink |
Returns
ApolloLink
Inherited from
apollo.ApolloLink.concat
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:9
empty
▸ empty(): ApolloLink
Returns
ApolloLink
Inherited from
apollo.ApolloLink.empty
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:5
execute
▸ execute(link
, operation
): Observable
<FetchResult
>
Parameters
Name | Type |
---|---|
link | ApolloLink |
operation | GraphQLRequest <Record <string , any >> |
Returns
Observable
<FetchResult
>
Inherited from
apollo.ApolloLink.execute
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:8
from
▸ from(links
): ApolloLink
Parameters
Name | Type |
---|---|
links | (RequestHandler | ApolloLink )[] |
Returns
ApolloLink
Inherited from
apollo.ApolloLink.from
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:6
split
▸ split(test
, left
, right?
): ApolloLink
Parameters
Name | Type |
---|---|
test | (op : Operation ) => boolean |
left | RequestHandler | ApolloLink |
right? | RequestHandler | ApolloLink |
Returns
ApolloLink
Inherited from
apollo.ApolloLink.split
Defined in
node_modules/@apollo/client/link/core/ApolloLink.d.ts:7