Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonis-apollo

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-apollo

Apollo GraphQL server for AdonisJs

  • 0.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-85.15%
Maintainers
2
Weekly downloads
 
Created
Source

adonis-apollo

NPM version npm download

Apollo GraphQL server for AdonisJs.

Installation

$ npm i adonis-apollo

  • Add 'adonis-apollo' to your providers in start/app.ts.
  • Add "adonis-apollo" to the "types" array in tsconfig.json.
  • Add "app/Schemas/*" to the "copyToBuild" array in .adonisrc.json.

Usage

Bind the apollo server to your AdonisJs application.
In start/routes.ts:

import ApolloServer from '@ioc:ApolloServer';

ApolloServer.applyMiddleware({ Route });

Configuration

TODO

Uploads

To enable support for GraphQL uploads:

  • Update the config of the bodyparser in config/bodyparser.ts by adding your GraphQL route (by default: /graphql) to the multipart.processManually array.
  • Add the Upload scalar to your schema: scalar Upload.

License

MIT

Keywords

FAQs

Package last updated on 02 Dec 2019

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