1.3.11 • Published 2 years ago

appsync-client-node v1.3.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

appsync-client-node codecov

Lightweight AWS AppSync client for Node.js (optimized for AWS Lambda Node.js runtime(s)):

  • supports IAM and API Key authentications
  • supports XRay tracing or OpenTelemetry Lambda layers auto-instrumentation
  • allow to specify URL via environment variable (GRAPHQL_API_ENDPOINT_ENV_NAME)
  • properly handles timeouts, abort signal and retries connection-reset errors
  • comes with lightweight gql tag (just stipes whitespace and comments) for prettier, GraphQL VSCode syntax highlighting, etc.
  • ESM and CommonJs modules
  • TypeScript generics support for variables and results
  • depends only on @aws-sdk v3 (that comes built-in on Node 18.x lambda runtime) and aws-xray-sdk-core that results in very small bundle (when used with CDK NodejsFunction)
  • MIT licensed

Usage

import { appSyncClient, gql } from "appsync-client-node";

const books = await appSyncClient<ReturnValueType, { author: string }>({
  query: gql`
    query books($author: String!) {
      books(author: $author) {
        ...BookFragment
      }
    }
  `,
  variables: {
    author: "Remark",
  },
});

License

MIT

1.3.10

2 years ago

1.3.11

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.23

2 years ago

1.2.24

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.25

2 years ago

1.2.26

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago