New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appsync-client-node

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appsync-client-node

Lightweight AWS AppSync client optimized for Lambda Node.js Runtime

  • 1.3.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 30 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc