graphql-query-rewriter
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Field
Arg
Name
Rewriter
Field
Arg
Type
Rewriter
Field
Args
ToInput
Type
Rewriter
Json
ToTyped
Object
Rewriter
constructor
field
Name
match
Conditions
object
Fields
root
Types
extract
Reponse
Element
generate
Selection
Set
matches
rewrite
Query
rewrite
Response
rewrite
Response
Element
rewrite
Variables
Nest
Field
Outputs
Rewriter
Rewrite
Handler
Rewriter
Scalar
Field
ToObject
Field
Rewriter
Field
Arg
Type
Rewriter
Opts
Field
Args
ToInput
Type
Rewriter
Opts
Fragment
Match
Condition
Opts
IField
Arg
Name
Rewriter
Opts
Json
ToTyped
Object
Rewriter
Opts
Mutation
Match
Condition
Opts
Nest
Field
Outputs
Rewriter
Opts
Object
Field
Query
Match
Condition
Opts
Rewriter
Match
Rewriter
Opts
Scalar
Field
ToObject
Field
Rewriter
Opts
Root
Type
Variables
match
Condition
ignore
Keys
fragment
Match
Condition
mutation
Match
Condition
query
Match
Condition
Hierarchy
Rewriter
JsonToTypedObjectRewriter
Index
Constructors
constructor
Properties
field
Name
match
Conditions
object
Fields
root
Types
Methods
extract
Reponse
Element
generate
Selection
Set
matches
rewrite
Query
rewrite
Response
rewrite
Response
Element
rewrite
Variables
Constructors
constructor
new
Json
ToTyped
Object
Rewriter
(
__namedParameters
:
object
)
:
JsonToTypedObjectRewriter
Parameters
__namedParameters:
object
field
Name
:
undefined
|
string
object
Fields
:
ObjectField
[]
Returns
JsonToTypedObjectRewriter
Properties
Protected
Optional
field
Name
field
Name
:
undefined
|
string
Protected
Optional
match
Conditions
match
Conditions
:
matchCondition
[]
Protected
object
Fields
object
Fields
:
ObjectField
[]
Protected
root
Types
root
Types
:
RootType
[]
= ['query', 'mutation', 'fragment']
Methods
Protected
extract
Reponse
Element
extract
Reponse
Element
(
response
:
any
, key
:
string
, index
?:
undefined
|
number
)
:
any
Parameters
response:
any
key:
string
Optional
index:
undefined
|
number
Returns
any
Private
generate
Selection
Set
generate
Selection
Set
(
fields
:
ObjectField
[]
)
:
SelectionSetNode
Parameters
fields:
ObjectField
[]
Returns
SelectionSetNode
matches
matches
(
nodeAndVars
:
NodeAndVarDefs
, parents
:
ASTNode
[]
)
:
boolean
Parameters
nodeAndVars:
NodeAndVarDefs
parents:
ASTNode
[]
Returns
boolean
rewrite
Query
rewrite
Query
(
nodeAndVarDefs
:
NodeAndVarDefs
)
:
NodeAndVarDefs
Parameters
nodeAndVarDefs:
NodeAndVarDefs
Returns
NodeAndVarDefs
rewrite
Response
rewrite
Response
(
response
:
any
, key
:
string
, index
?:
undefined
|
number
)
:
any
Parameters
response:
any
key:
string
Optional
index:
undefined
|
number
Returns
any
Protected
rewrite
Response
Element
rewrite
Response
Element
(
response
:
any
, newElement
:
any
, key
:
string
, index
?:
undefined
|
number
)
:
any
Parameters
response:
any
newElement:
any
key:
string
Optional
index:
undefined
|
number
Returns
any
rewrite
Variables
rewrite
Variables
(
nodeAndVarDefs
:
NodeAndVarDefs
, variables
:
Variables
)
:
Variables
Parameters
nodeAndVarDefs:
NodeAndVarDefs
variables:
Variables
Returns
Variables
Generated using
TypeDoc