Search
Preparing search index...
The search index is not available
fabric-es - v0.7.18
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
@fabric-es/gateway-lib
AuthenticatedDataSource
Globals
@fabric-es/fabric-cqrs
@fabric-es/gateway-lib
@fabric-es/operator
Class AuthenticatedDataSource
Hierarchy
RemoteGraphQLDataSource
AuthenticatedDataSource
Implements
GraphQLDataSource
<
Record
<
string
,
any
>
>
Constructors
constructor
Properties
apq
fetcher
url
Methods
did
Encounter
Error
did
Receive
Response
error
From
Response
parse
Body
process
will
Send
Request
Constructors
constructor
new
Authenticated
Data
Source
(
config
?:
Partial
<
RemoteGraphQLDataSource
<
Record
<
string
,
any
>
>
>
&
object
&
ThisType
<
RemoteGraphQLDataSource
<
Record
<
string
,
any
>
>
>
)
:
AuthenticatedDataSource
Parameters
Optional
config:
Partial
<
RemoteGraphQLDataSource
<
Record
<
string
,
any
>
>
>
&
object
&
ThisType
<
RemoteGraphQLDataSource
<
Record
<
string
,
any
>
>
>
Returns
AuthenticatedDataSource
Properties
apq
apq
:
boolean
fetcher
fetcher
:
typeof fetch
url
url
:
string
Methods
did
Encounter
Error
did
Encounter
Error
(
error
:
Error
, _fetchRequest
:
Request
, _fetchResponse
?:
Response
)
:
void
Parameters
error:
Error
_fetchRequest:
Request
Optional
_fetchResponse:
Response
Returns
void
Optional
did
Receive
Response
did
Receive
Response
(
requestContext
:
Required
<
Pick
<
GraphQLRequestContext
<
Record
<
string
,
any
>
>
,
"request"
|
"response"
|
"context"
>
>
)
:
ValueOrPromise
<
GraphQLResponse
>
Parameters
requestContext:
Required
<
Pick
<
GraphQLRequestContext
<
Record
<
string
,
any
>
>
,
"request"
|
"response"
|
"context"
>
>
Returns
ValueOrPromise
<
GraphQLResponse
>
error
From
Response
error
From
Response
(
response
:
Response
)
:
Promise
<
ApolloError
>
Parameters
response:
Response
Returns
Promise
<
ApolloError
>
parse
Body
parse
Body
(
fetchResponse
:
Response
, _fetchRequest
?:
Request
, _context
?:
Record
<
string
,
any
>
)
:
Promise
<
object
|
string
>
Parameters
fetchResponse:
Response
Optional
_fetchRequest:
Request
Optional
_context:
Record
<
string
,
any
>
Returns
Promise
<
object
|
string
>
process
process
(
__namedParameters
:
object
)
:
Promise
<
GraphQLResponse
>
Parameters
__namedParameters:
object
context
:
TContext
request
:
GraphQLRequest
Returns
Promise
<
GraphQLResponse
>
will
Send
Request
will
Send
Request
(
__namedParameters
:
object
)
:
void
Parameters
__namedParameters:
object
context
:
any
request
:
any
Returns
void
Authenticated
Data
Source
constructor
apq
fetcher
url
did
Encounter
Error
did
Receive
Response
error
From
Response
parse
Body
process
will
Send
Request