Documentation
¶
Overview ¶
Where all the magic happens
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructObjectFromPArgs ¶
func ConstructObjectFromPArgs(modelType reflect.Type, p *graphql.ResolveParams) (*interface{}, []reflect.StructField)
Reads out the GraphQL arguments and writes them into a new object. Consider this as a kind of deserialization.
Types ¶
type IDBehavior ¶ added in v0.9.0
type IDBehavior int
const ( // IDBehaviorSkip skips the Id field in input arguments IDBehaviorSkip IDBehavior = iota // IDBehaviorInclusive includes the Id field in input arguments among other arguments IDBehaviorInclusive // IDBehaviorExclusive exclusively includes the Id field in input arguments, skipping all others IDBehaviorExclusive )
Click to show internal directories.
Click to hide internal directories.