npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@raydeck/serverless-appsync-builder

v1.0.9

Published

Build unified appsync resolvers with raydeck/serverless framework

Readme

Usage

@raydeck/serverless-appsync-builder [options] [command]

Options

  • -w --working-path <path> Working directory for project (default: .

Commands

wrapper

Build wrapper ts file for lambdas

Usage

@raydeck/serverless-appsync-builder wrapper [options]

Options

  • -o --output <outputfile> Output to write to (default: ./_appsync_wrapper.ts

serverless

Update serverless.yml with data resolvers for appsync

Usage

@raydeck/serverless-appsync-builder serverless [options]

Options

  • -y --yamlfile <path> Path to serverless.yml file (default: ./serverless.yml

add-serverless-function

Update serverless with appsync function reference

Usage

@raydeck/serverless-appsync-builder add-serverless-function [options]

Options

  • -y --yamlfile <path> Path to serverless.yml file (default: ./serverless.yml

@raydeck/serverless-appsync-builder - v1.0.9

@raydeck/serverless-appsync-builder - v1.0.9

Index

Interfaces

Functions

Functions

buildServerlessAppsync

buildServerlessAppsync(resolvers: [string, AppsyncResolverWrapper[]][]): object | object

Defined in index.ts:291

Parameters:

Name | Type | ------ | ------ | resolvers | [string, AppsyncResolverWrapper[]][] |

Returns: object | object


findTemplate

findTemplate(filename: string, currentPath: string): string

Defined in index.ts:125

Parameters:

Name | Type | Default | ------ | ------ | ------ | filename | string | - | currentPath | string | process.cwd() |

Returns: string


flatten

flatten(paths: object[]): AppsyncResolverWrapperFile[]

Defined in index.ts:120

Parameters:

Name | Type | ------ | ------ | paths | object[] |

Returns: AppsyncResolverWrapperFile[]


inspect

inspect(exports: object): AppsyncResolverWrapper[]

Defined in index.ts:81

Parameters:

Name | Type | ------ | ------ | exports | object |

Returns: AppsyncResolverWrapper[]


makeAppSyncText

makeAppSyncText(resolvers: [string, AppsyncResolverWrapper[]][]): string

Defined in index.ts:221

Parameters:

Name | Type | ------ | ------ | resolvers | [string, AppsyncResolverWrapper[]][] |

Returns: string


makeAppsyncImports

makeAppsyncImports(resolvers: [string, AppsyncResolverWrapper[]][]): string

Defined in index.ts:178

Parameters:

Name | Type | ------ | ------ | resolvers | [string, AppsyncResolverWrapper[]][] |

Returns: string


makeAppsyncLambda

makeAppsyncLambda(resolvers: [string, AppsyncResolverWrapper[]][]): string

Defined in index.ts:192

Parameters:

Name | Type | ------ | ------ | resolvers | [string, AppsyncResolverWrapper[]][] |

Returns: string


makeFieldResolver

makeFieldResolverT›(argsOrFunc: object | function): FieldResolverOutput‹T›

Defined in index.ts:17

Type parameters:

T

Parameters:

Name | Type | ------ | ------ | argsOrFunc | object | function |

Returns: FieldResolverOutput‹T›


makeMappingTemplate

makeMappingTemplate(template: AppsyncResolverWrapper, mappingTemplatesPath: string, path: string): void

Defined in index.ts:135

Parameters:

Name | Type | Default | ------ | ------ | ------ | template | AppsyncResolverWrapper | - | mappingTemplatesPath | string | "mapping-templates" | path | string | process.cwd() |

Returns: void


makeMappingTemplates

makeMappingTemplates(resolvers: AppsyncResolverWrapper[], mappingTemplatesPath: string, path: string): void

Defined in index.ts:161

Parameters:

Name | Type | Default | ------ | ------ | ------ | resolvers | AppsyncResolverWrapper[] | - | mappingTemplatesPath | string | "mapping-templates" | path | string | process.cwd() |

Returns: void


makeMutationResolver

makeMutationResolverT›(argsOrFunc: object | function): FieldResolverOutput‹T›

Defined in index.ts:54

Type parameters:

T

Parameters:

Name | Type | ------ | ------ | argsOrFunc | object | function |

Returns: FieldResolverOutput‹T›


makeQueryResolver

makeQueryResolverT›(argsOrFunc: object | function): FieldResolverOutput‹T›

Defined in index.ts:36

Type parameters:

T

Parameters:

Name | Type | ------ | ------ | argsOrFunc | object | function |

Returns: FieldResolverOutput‹T›


resolveBoolean

resolveBoolean(value: boolean): Promise‹boolean›

Defined in index.ts:288

Parameters:

Name | Type | ------ | ------ | value | boolean |

Returns: Promise‹boolean›


resolveCursor

resolveCursorResolverFunc›(arr: any[], resolver: ResolverFunc, lastCursor?: undefined | string, hasNextPage: boolean, firstCursor?: undefined | string, hasPreviousPage: boolean): Promise‹object›

Defined in index.ts:262

Type parameters:

ResolverFunc: function

Parameters:

Name | Type | Default | ------ | ------ | ------ | arr | any[] | [] | resolver | ResolverFunc | - | lastCursor? | undefined | string | - | hasNextPage | boolean | false | firstCursor? | undefined | string | - | hasPreviousPage | boolean | false |

Returns: Promise‹object›


withBatch

withBatch(f: function): Promise‹(Anonymous function)›

Defined in index.ts:229

Parameters:

f: function

▸ (event: object, ctx?: any, cb?: any): Promise‹any›

Parameters:

Name | Type | ------ | ------ | event | object | ctx? | any | cb? | any |

Returns: Promise‹(Anonymous function)›

@raydeck/serverless-appsync-builder - v1.0.9AppsyncResolverWrapper

Interface: AppsyncResolverWrapper

Hierarchy

Index

Properties

Properties

field

field: string

Defined in index.ts:74


func

func: function

Defined in index.ts:75

Type declaration:

▸ (args: any): Promise‹any›

Parameters:

Name | Type | ------ | ------ | args | any |


key

key: string

Defined in index.ts:76


type

type: string

Defined in index.ts:73

@raydeck/serverless-appsync-builder - v1.0.9AppsyncResolverWrapperFile

Interface: AppsyncResolverWrapperFile

Hierarchy

Index

Properties

Properties

field

field: string

Inherited from AppsyncResolverWrapper.field

Defined in index.ts:74


func

func: function

Inherited from AppsyncResolverWrapper.func

Defined in index.ts:75

Type declaration:

▸ (args: any): Promise‹any›

Parameters:

Name | Type | ------ | ------ | args | any |


key

key: string

Inherited from AppsyncResolverWrapper.key

Defined in index.ts:76


path

path: string

Defined in index.ts:79


type

type: string

Inherited from AppsyncResolverWrapper.type

Defined in index.ts:73

@raydeck/serverless-appsync-builder - v1.0.9FieldResolverOutput

Interface: FieldResolverOutput ‹T

Type parameters

T

Hierarchy

  • FieldResolverOutput

Index

Properties

Properties

appSyncResolver

appSyncResolver: string

Defined in index.ts:15


Optional field

field? : undefined | string

Defined in index.ts:13


func

func: function

Defined in index.ts:14

Type declaration:

▸ (o: object): Promise‹any›

Parameters:

o: object

Name | Type | ------ | ------ | args | T |


Optional type

type? : undefined | string

Defined in index.ts:12