Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadFinder ¶
type UploadFinder struct {
// contains filtered or unexported fields
}
UploadFinder is a helper to find upload structs in the arguments of a query it can be used only in context of arguments extraction normalization rule because it iterates one argument at time
func NewUploadFinder ¶
func NewUploadFinder() *UploadFinder
func (*UploadFinder) AddUploadPath ¶
func (v *UploadFinder) AddUploadPath()
func (*UploadFinder) FindUploads ¶
func (v *UploadFinder) FindUploads(operation, definition *ast.Document, variables []byte, argRef int, argInputValueDefinitionRef int) (uploadPathMapping []UploadPathMapping, err error)
func (*UploadFinder) Reset ¶
func (v *UploadFinder) Reset()
type UploadPathMapping ¶
type UploadPathMapping struct {
// Variable name holding the direct or nested value of type Upload. Example: "f"
VariableName string
// Path relative to variables that have Upload type. Example: "variables.f"
OriginalUploadPath string
// If a variable was used in the inline object like this `arg: {f: $f}` this field will hold
// the new extracted path. Example: "variables.a.f".
// If it is empty, there was no change in the path.
NewUploadPath string
}
Click to show internal directories.
Click to hide internal directories.