New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tsed/apollo

Package Overview
Dependencies
Maintainers
1
Versions
727
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/apollo

Apollo package for Ts.ED framework

latest
Source
npmnpm
Version
8.26.0
Version published
Maintainers
1
Created
Source

Ts.ED logo

Apollo

Build & Release PR Welcome npm version semantic-release code style: prettier github opencollective

Website   •   TypeGraphQL   •   Slack   •   Twitter

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

Feature

  • Create and bind Apollo server with Ts.ED.
  • Create multiple Apollo server.
  • Support Express and Koa.

TypeGraphQL

If you're looking for integration with TypeGraphQL see the @tsed/typegraphql package.

Installation

To begin, install the Apollo module for TS.ED:

npm install --save @tsed/apollo graphql@16 @apollo/server apollo/datasource-rest
npm install --save-dev  apollo-server-testing

Express Integration

If you are using express you need to install its respective integration:

npm install --save @as-integrations/express4
npm install --save @as-integrations/express5

Koa Integration

npm install --save @as-integrations/koa

Fastify Integration

Coming Soon

Now, we can configure the Ts.ED server by importing @tsed/apollo in your Server:

import {Configuration} from "@tsed/di";
import "@tsed/apollo";

@Configuration({
  apollo: {
    server1: {
      path: "/",
      schema: {},
      resolvers: []
    }
  }
})
export class Server {}

For more information about ApolloServer look his documentation here;

Contributors

Please read contributing guidelines here

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

The MIT License (MIT)

Copyright (c) 2016 - 2022 Romain Lenzotti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FAQs

Package last updated on 02 Apr 2026

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