Skip to main content

Type Alias: AppSyncInfo

AppSyncInfo = object

Defined in: appSyncMiddleware.ts:13

The shape of the info object passed to AppSync resolvers at runtime.

This differs from the standard GraphQLResolveInfo used by graphql-middleware. AppSync provides a flat parentTypeName: string field instead of the nested parentType: { name: string } object found in standard GraphQL execution.

See

https://docs.aws.amazon.com/appsync/latest/devguide/resolver-context-reference.html

Properties

fieldName

fieldName: string

Defined in: appSyncMiddleware.ts:15

The name of the field that is currently being resolved.


parentTypeName

parentTypeName: string

Defined in: appSyncMiddleware.ts:17

The name of the parent type for the field that is currently being resolved.


selectionSetGraphQL

selectionSetGraphQL: string

Defined in: appSyncMiddleware.ts:23

A string representation of the selection set, formatted as GraphQL SDL.


selectionSetList

selectionSetList: string[]

Defined in: appSyncMiddleware.ts:21

A list representation of the fields in the GraphQL selection set.


variables

variables: Record<string, unknown>

Defined in: appSyncMiddleware.ts:19

A map which holds all variables that are passed into the GraphQL request.