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

@orikami/create-graphql-service

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orikami/create-graphql-service

create a GraphQL microservice with auth0 authentication

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

create-graphql-service

Install

npm install --save @orikami/create-graphql-service

Usage

Due to some package troubles, you need to install apollo-server-micro and graphql in your microservice (root) package.json

npm install --save graphql apollo-server-micro

Now you can write a micro function in index.js:

const createGraphQLService = require("./packages/create-graphql-service");
const apolloServer = require("apollo-server-micro");
const schema = require("./schema");

module.exports = createGraphQLService({ schema, apolloServer, name: "graphql-demo", version: "v1" });

This will create endpoints:

  • /v1/graphql-demo/graphql
  • /v1/graphql-demo/grapihql

For more information about development and release, see documentation.

FAQs

Package last updated on 08 Aug 2018

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