Rename packages from graphql-server- to apollo-server- (#465)

This commit is contained in:
Martijn Walraven 2017-07-17 16:29:40 -07:00 committed by GitHub
parent 576e7b8f9e
commit 300c0cd12b
103 changed files with 728 additions and 316 deletions

View file

@ -1,31 +1,31 @@
# GraphQL Server for Express, Connect, Hapi, Koa, Restify and AWS Lambda
[![npm version](https://badge.fury.io/js/graphql-server-core.svg)](https://badge.fury.io/js/graphql-server-core)
[![Build Status](https://travis-ci.org/apollographql/graphql-server.svg?branch=master)](https://travis-ci.org/apollographql/graphql-server)
[![Coverage Status](https://coveralls.io/repos/github/apollographql/graphql-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/graphql-server?branch=master)
[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core)
[![Build Status](https://travis-ci.org/apollographql/apollo-server.svg?branch=master)](https://travis-ci.org/apollographql/apollo-server)
[![Coverage Status](https://coveralls.io/repos/github/apollographql/apollo-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/apollo-server?branch=master)
[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](http://www.apollodata.com/#slack)
GraphQL Server is a community-maintained open-source GraphQL server. It works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify.
Apollo Server is a community-maintained open-source GraphQL server. It works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify.
## Principles
GraphQL Server is built with the following principles in mind:
Apollo Server is built with the following principles in mind:
* **By the community, for the community**: GraphQL Server's development is driven by the needs of developers
* **Simplicity**: by keeping things simple, GraphQL Server is easier to use, easier to contribute to, and more secure
* **Performance**: GraphQL Server is well-tested and production-ready - no modifications needed
* **By the community, for the community**: Apollo Server's development is driven by the needs of developers
* **Simplicity**: by keeping things simple, Apollo Server is easier to use, easier to contribute to, and more secure
* **Performance**: Apollo Server is well-tested and production-ready - no modifications needed
Anyone is welcome to contribute to GraphQL Server, just read [CONTRIBUTING.md](./CONTRIBUTING.md), take a look at the [roadmap](./ROADMAP.md) and make your first PR!
Anyone is welcome to contribute to Apollo Server, just read [CONTRIBUTING.md](./CONTRIBUTING.md), take a look at the [roadmap](./ROADMAP.md) and make your first PR!
## Getting started
GraphQL Server is super easy to set up. Just `npm install graphql-server-<variant>`, write a GraphQL schema, and then use one of the following snippets to get started. For more info, read the [GraphQL Server docs](http://dev.apollodata.com/tools/graphql-server/index.html).
Apollo Server is super easy to set up. Just `npm install apollo-server-<variant>`, write a GraphQL schema, and then use one of the following snippets to get started. For more info, read the [Apollo Server docs](http://dev.apollodata.com/tools/apollo-server/index.html).
### Installation
Just run `npm install --save graphql-server-<variant>` and you're good to go!
Just run `npm install --save apollo-server-<variant>` and you're good to go!
where variant is one of the following:
- express
@ -40,7 +40,7 @@ where variant is one of the following:
```js
import express from 'express';
import bodyParser from 'body-parser';
import { graphqlExpress } from 'graphql-server-express';
import { graphqlExpress } from 'apollo-server-express';
const myGraphQLSchema = // ... define or import your schema here!
const PORT = 3000;
@ -57,7 +57,7 @@ app.listen(PORT);
```js
import connect from 'connect';
import bodyParser from 'body-parser';
import { graphqlConnect } from 'graphql-server-express';
import { graphqlConnect } from 'apollo-server-express';
import http from 'http';
const PORT = 3000;
@ -77,7 +77,7 @@ Now with the Hapi plugins `graphqlHapi` and `graphiqlHapi` you can pass a route
```js
import hapi from 'hapi';
import { graphqlHapi } from 'graphql-server-hapi';
import { graphqlHapi } from 'apollo-server-hapi';
const server = new hapi.Server();
@ -115,7 +115,7 @@ server.start((err) => {
import koa from 'koa'; // koa@2
import koaRouter from 'koa-router'; // koa-router@next
import koaBody from 'koa-bodyparser'; // koa-bodyparser@next
import { graphqlKoa } from 'graphql-server-koa';
import { graphqlKoa } from 'apollo-server-koa';
const app = new koa();
const router = new koaRouter();
@ -135,12 +135,12 @@ app.listen(PORT);
### Restify
```js
import restify from 'restify';
import { graphqlRestify, graphiqlRestify } from 'graphql-server-restify';
import { graphqlRestify, graphiqlRestify } from 'apollo-server-restify';
const PORT = 3000;
const server = restify.createServer({
title: 'GraphQL Server'
title: 'Apollo Server'
});
const graphQLOptions = { schema: myGraphQLSchema };
@ -161,7 +161,7 @@ server.listen(PORT, () => console.log(`Listening on ${PORT}`));
Lambda function should be run with Node.js v4.3. Requires an API Gateway with Lambda Proxy Integration.
```js
var server = require("graphql-server-lambda");
var server = require("apollo-server-lambda");
exports.handler = server.graphqlLambda({ schema: myGraphQLSchema });
```
@ -171,14 +171,14 @@ exports.handler = server.graphqlLambda({ schema: myGraphQLSchema });
Requires the [Micro](https://github.com/zeit/micro) module
```js
const server = require("graphql-server-micro");
const server = require("apollo-server-micro");
module.exports = server.microGraphql({ schema: myGraphQLSchema });
```
## Options
GraphQL Server can be configured with an options object with the the following fields:
Apollo Server can be configured with an options object with the the following fields:
* **schema**: the GraphQLSchema to be used
* **context**: the context value passed to resolvers during GraphQL execution
@ -208,28 +208,28 @@ graphqlOptions = {
## Differences to express-graphql
GraphQL Server and express-graphql are more or less the same thing (GraphQL middleware for Node.js), but there are a few key differences:
Apollo Server and express-graphql are more or less the same thing (GraphQL middleware for Node.js), but there are a few key differences:
* express-graphql works with Express and Connect, GraphQL Server supports Express, Connect, Hapi, Koa and Restify.
* express-graphql's main goal is to be a minimal reference implementation, whereas GraphQL Server's goal is to be a complete production-ready GraphQL server.
* Compared to express-graphql, GraphQL Server has a simpler interface and supports exactly one way of passing queries.
* GraphQL Server separates serving GraphiQL (GraphQL UI) from responding to GraphQL requests.
* express-graphql contains code for parsing HTTP request bodies, GraphQL Server leaves that to standard packages like body-parser.
* express-graphql works with Express and Connect, Apollo Server supports Express, Connect, Hapi, Koa and Restify.
* express-graphql's main goal is to be a minimal reference implementation, whereas Apollo Server's goal is to be a complete production-ready GraphQL server.
* Compared to express-graphql, Apollo Server has a simpler interface and supports exactly one way of passing queries.
* Apollo Server separates serving GraphiQL (GraphQL UI) from responding to GraphQL requests.
* express-graphql contains code for parsing HTTP request bodies, Apollo Server leaves that to standard packages like body-parser.
* Includes an `OperationStore` to easily manage whitelisting
* Built with TypeScript
Despite express-graphql being a reference implementation, GraphQL Server is actually easier to understand and more modular than express-graphql.
Despite express-graphql being a reference implementation, Apollo Server is actually easier to understand and more modular than express-graphql.
That said, GraphQL Server is heavily inspired by express-graphql (it's the reference implementation after all). Rather than seeing the two as competing alternatives, we think that they both have separate roles in the GraphQL ecosystem: express-graphql is a reference implementation, and GraphQL Server is a GraphQL server to be used in production and evolve quickly with the needs of the community. Over time, express-graphql can adopt those features of GraphQL Server that have proven their worth and become established more widely.
That said, Apollo Server is heavily inspired by express-graphql (it's the reference implementation after all). Rather than seeing the two as competing alternatives, we think that they both have separate roles in the GraphQL ecosystem: express-graphql is a reference implementation, and Apollo Server is a GraphQL server to be used in production and evolve quickly with the needs of the community. Over time, express-graphql can adopt those features of Apollo Server that have proven their worth and become established more widely.
### application/graphql requests
express-graphql supports the `application/graphql` Content-Type for requests, which is an alternative to `application/json` request with only the query part sent as text. In the same way that we use `bodyParser.json` to parse `application/json` requests for graphql-server, we can use `bodyParser.text` plus one extra step in order to also parse `application/graphql` requests. Here's an example for express:
express-graphql supports the `application/graphql` Content-Type for requests, which is an alternative to `application/json` request with only the query part sent as text. In the same way that we use `bodyParser.json` to parse `application/json` requests for apollo-server, we can use `bodyParser.text` plus one extra step in order to also parse `application/graphql` requests. Here's an example for express:
```js
import express from 'express';
import bodyParser from 'body-parser';
import { graphqlExpress } from 'graphql-server-express';
import { graphqlExpress } from 'apollo-server-express';
const myGraphQLSchema = // ... define or import your schema here!
@ -249,25 +249,25 @@ express()
  .listen(3000);
```
## GraphQL Server Development
## Apollo Server Development
If you want to develop GraphQL Server locally you must follow the following instructions:
If you want to develop Apollo Server locally you must follow the following instructions:
* Fork this repository
* Install the GraphQL Server project in your computer
* Install the Apollo Server project in your computer
```
git clone https://github.com/[your-user]/graphql-server
cd graphql-server
git clone https://github.com/[your-user]/apollo-server
cd apollo-server
npm install
cd packages/graphql-server-<variant>/
cd packages/apollo-server-<variant>/
npm link
```
* Install your local GraphQL Server in other App
* Install your local Apollo Server in other App
```
cd ~/myApp
npm link graphql-server-<variant>
npm link apollo-server-<variant>
```

View file

@ -2,7 +2,7 @@
"lerna": "2.0.0",
"version": "1.0.1",
"changelog": {
"repo": "apollostack/graphql-server",
"repo": "apollographql/apollo-server",
"labels": {
"tag: breaking change": ":boom: Breaking Change",
"tag: new feature": ":rocket: New Feature",

View file

@ -3,7 +3,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/apollostack/graphql-server.git"
"url": "git+https://github.com/apollographql/apollo-server.git"
},
"scripts": {
"compile": "lerna exec -- npm run compile",

View file

@ -0,0 +1,42 @@
{
"name": "apollo-server-core",
"version": "1.0.0",
"description": "Core engine for Apollo GraphQL server",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-core"
},
"keywords": [
"GraphQL",
"Apollo",
"Server",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"devDependencies": {
"@types/fibers": "0.0.29",
"@types/graphql": "^0.9.0",
"fibers": "1.0.15",
"meteor-promise": "^0.8.2"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.0"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,4 @@
export { runQuery, LogFunction, LogMessage, LogStep, LogAction } from './runQuery';
export { runHttpQuery, HttpQueryRequest, HttpQueryError } from './runHttpQuery';
export { default as GraphQLOptions, resolveGraphqlOptions } from './graphqlOptions';

View file

@ -25,7 +25,7 @@ Anyone is welcome to contribute to GraphQL Server, just read [CONTRIBUTING.md](.
```js
import express from 'express';
import bodyParser from 'body-parser';
import { graphqlExpress } from 'graphql-server-express';
import { graphqlExpress } from 'apollo-server-express';
const myGraphQLSchema = // ... define or import your schema here!
const PORT = 3000;
@ -42,7 +42,7 @@ app.listen(PORT);
```js
import connect from 'connect';
import bodyParser from 'body-parser';
import { graphqlConnect } from 'graphql-server-express';
import { graphqlConnect } from 'apollo-server-express';
import http from 'http';
const PORT = 3000;

View file

@ -0,0 +1,55 @@
{
"name": "apollo-server-express",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for Express and Connect",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-express"
},
"keywords": [
"GraphQL",
"Apollo",
"Server",
"Express",
"Connect",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/body-parser": "1.16.3",
"@types/connect": "^3.4.30",
"@types/express": "^4.0.35",
"@types/multer": "0.0.33",
"body-parser": "^1.17.2",
"connect": "^3.6.2",
"connect-query": "^1.0.0",
"express": "^4.15.3",
"apollo-server-integration-testsuite": "^1.0.0",
"multer": "^1.3.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/express": "^4.0.35",
"@types/graphql": "^0.9.1"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -3,7 +3,7 @@ import * as bodyParser from 'body-parser';
import { graphqlConnect, graphiqlConnect } from './connectApollo';
import 'mocha';
import testSuite, { schema as Schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema as Schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
function createConnectApp(options: CreateAppOptions = {}) {
const app = connect();

View file

@ -1,9 +1,9 @@
import * as express from 'express';
import * as bodyParser from 'body-parser';
import { graphqlExpress, graphiqlExpress } from './expressApollo';
import testSuite, { schema as Schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema as Schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
import { expect } from 'chai';
import { GraphQLOptions } from 'graphql-server-core';
import { GraphQLOptions } from 'apollo-server-core';
import 'mocha';
function createApp(options: CreateAppOptions = {}) {

View file

@ -1,7 +1,7 @@
import * as express from 'express';
import * as url from 'url';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
export interface ExpressGraphQLOptionsFunction {
(req?: express.Request, res?: express.Response): GraphQLOptions | Promise<GraphQLOptions>;

View file

@ -0,0 +1,12 @@
export {
ExpressGraphQLOptionsFunction,
ExpressHandler,
ExpressGraphiQLOptionsFunction,
graphqlExpress,
graphiqlExpress,
} from './expressApollo';
export {
graphqlConnect,
graphiqlConnect,
} from './connectApollo';

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -24,7 +24,7 @@ With the Hapi plugins `graphqlHapi` and `graphiqlHapi` you can pass a route obje
```js
import hapi from 'hapi';
import { graphqlHapi } from 'graphql-server-hapi';
import { graphqlHapi } from 'apollo-server-hapi';
const server = new hapi.Server();

View file

@ -0,0 +1,50 @@
{
"name": "apollo-server-hapi",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for Hapi",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-hapi"
},
"keywords": [
"GraphQL",
"Apollo",
"Hapi",
"Server",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"boom": "^5.1.0",
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/boom": "4.3.2",
"@types/graphql": "^0.9.1",
"@types/hapi": "^16.1.4",
"apollo-server-integration-testsuite": "^1.0.0",
"hapi": "^16.4.3"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/hapi": "^16.1.2"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -2,7 +2,7 @@ import * as hapi from 'hapi';
import { graphqlHapi, graphiqlHapi } from './hapiApollo';
import 'mocha';
import testSuite, { schema as Schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema as Schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
function createApp(options: CreateAppOptions) {
const server = new hapi.Server();

View file

@ -1,7 +1,7 @@
import * as Boom from 'boom';
import { Server, Response, Request, ReplyNoContinue } from 'hapi';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, runHttpQuery, HttpQueryError } from 'graphql-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
import { GraphQLOptions, runHttpQuery, HttpQueryError } from 'apollo-server-core';
export interface IRegister {
(server: Server, options: any, next: any): void;

View file

@ -0,0 +1,6 @@
export { IRegister,
HapiOptionsFunction,
HapiPluginOptions,
HapiGraphiQLOptionsFunction,
HapiGraphiQLPluginOptions,
graphqlHapi, graphiqlHapi } from './hapiApollo';

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -1,5 +1,5 @@
{
"name": "graphql-server-integration-testsuite",
"name": "apollo-server-integration-testsuite",
"private": true,
"version": "1.0.0",
"description": "Apollo Server Integrations testsuite",
@ -10,19 +10,19 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-integration-testsuite"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-integration-testsuite"
},
"keywords": [],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0",
"graphql-server-module-operation-store": "^1.0.0",
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0",
"apollo-server-module-operation-store": "^1.0.0",
"supertest": "^3.0.0",
"supertest-as-promised": "^4.0.0"
},

View file

@ -17,9 +17,9 @@ import {
// tslint:disable-next-line
const request = require('supertest-as-promised');
import { GraphQLOptions } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { OperationStore } from 'graphql-server-module-operation-store';
import { GraphQLOptions } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
import { OperationStore } from 'apollo-server-module-operation-store';
const queryType = new GraphQLObjectType({
name: 'QueryType',

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -24,7 +24,7 @@ Anyone is welcome to contribute to GraphQL Server, just read [CONTRIBUTING.md](.
import koa from 'koa'; // koa@2
import koaRouter from 'koa-router'; // koa-router@next
import koaBody from 'koa-bodyparser'; // koa-bodyparser@next
import { graphqlKoa } from 'graphql-server-koa';
import { graphqlKoa } from 'apollo-server-koa';
const app = new koa();
const router = new koaRouter();

View file

@ -0,0 +1,51 @@
{
"name": "apollo-server-koa",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for Koa",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-koa"
},
"keywords": [
"GraphQL",
"Apollo",
"Koa",
"Server",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/koa": "^2.0.39",
"@types/koa-bodyparser": "^3.0.23",
"@types/koa-router": "^7.0.22",
"apollo-server-integration-testsuite": "^1.0.0",
"koa": "^2.2.0",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.2.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/koa": "^2.0.39"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,7 @@
export {
KoaGraphQLOptionsFunction,
KoaHandler,
KoaGraphiQLOptionsFunction,
graphqlKoa,
graphiqlKoa,
} from './koaApollo';

View file

@ -2,11 +2,11 @@ import * as koa from 'koa';
import * as koaRouter from 'koa-router';
import * as koaBody from 'koa-bodyparser';
import { graphqlKoa, graphiqlKoa } from './koaApollo';
import { GraphQLOptions } from 'graphql-server-core';
import { GraphQLOptions } from 'apollo-server-core';
import { expect } from 'chai';
import * as http from 'http';
import testSuite, { schema as Schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema as Schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
function createApp(options: CreateAppOptions = {}) {
const app = new koa();

View file

@ -1,6 +1,6 @@
import * as koa from 'koa';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
export interface KoaGraphQLOptionsFunction {
(ctx: koa.Context): GraphQLOptions | Promise<GraphQLOptions>;

View file

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": []
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -0,0 +1,43 @@
{
"name": "apollo-server-lambda",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for AWS Lambda",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-lambda"
},
"keywords": [
"GraphQL",
"Apollo",
"Server",
"Lambda",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/aws-lambda": "0.0.10",
"@types/graphql": "^0.9.1",
"apollo-server-integration-testsuite": "^1.0.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,8 @@
export {
LambdaHandler,
IHeaders,
LambdaGraphQLOptionsFunction,
LambdaGraphiQLOptionsFunction,
graphqlLambda,
graphiqlLambda,
} from './lambdaApollo';

View file

@ -1,7 +1,7 @@
import { graphqlLambda, graphiqlLambda } from './lambdaApollo';
import testSuite, { schema as Schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema as Schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
import { expect } from 'chai';
import { GraphQLOptions } from 'graphql-server-core';
import { GraphQLOptions } from 'apollo-server-core';
import 'mocha';
import * as url from 'url';

View file

@ -1,6 +1,6 @@
import * as lambda from 'aws-lambda';
import { GraphQLOptions, runHttpQuery } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, runHttpQuery } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
export interface LambdaGraphQLOptionsFunction {
(event: any, context: lambda.Context): GraphQLOptions | Promise<GraphQLOptions>;

View file

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
],
"types": [
"@types/node"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -0,0 +1,48 @@
{
"name": "apollo-server-micro",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for Micro",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-micro"
},
"keywords": [
"GraphQL",
"Apollo",
"Micro",
"Server",
"Javascript"
],
"author": "Nick Nance <nance.nick@gmail.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"apollo-server-integration-testsuite": "^1.0.0",
"micro": "^7.3.3",
"microrouter": "^2.1.1"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1",
"micro": "^7.3.3"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/micro": "^7.3.0"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,6 @@
export {
MicroGraphQLOptionsFunction,
MicroGraphiQLOptionsFunction,
microGraphql,
microGraphiql,
} from './microApollo';

View file

@ -3,7 +3,7 @@ import 'mocha';
import micro, { send } from 'micro';
import { router, get, post, put, patch, del, head, options as opts } from 'microrouter';
import testSuite, { schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
function createApp(options: CreateAppOptions) {

View file

@ -1,5 +1,5 @@
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
import { createError, json, RequestHandler } from 'micro';
import * as url from 'url';
import {IncomingMessage, ServerResponse} from 'http';

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -0,0 +1,32 @@
{
"name": "apollo-server-module-graphiql",
"version": "1.0.0",
"description": "GraphiQL renderer for Apollo GraphQL Server",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-module-graphiql"
},
"keywords": [
"GraphQL",
"GraphiQL",
"Apollo",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {},
"devDependencies": {},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,2 @@
export { GraphiQLData, renderGraphiQL } from './renderGraphiQL';
export { resolveGraphiQLString } from './resolveGraphiQLString';

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -0,0 +1,36 @@
{
"name": "apollo-server-module-operation-store",
"version": "1.0.0",
"description": "Persisted operation store module for Apollo GraphQL Servers",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-module-operation-store"
},
"keywords": [
"GraphQL",
"Apollo",
"Operation Store",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1 @@
export { OperationStore } from './operationStore';

View file

@ -0,0 +1,14 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -22,7 +22,7 @@ Anyone is welcome to contribute to GraphQL Server, just read [CONTRIBUTING.md](.
```js
import restify from 'restify';
import { graphqlRestify, graphiqlRestify } from 'graphql-server-restify';
import { graphqlRestify, graphiqlRestify } from 'apollo-server-restify';
const PORT = 3000;

View file

@ -0,0 +1,47 @@
{
"name": "apollo-server-restify",
"version": "1.0.0",
"description": "Production-ready Node.js GraphQL server for Restify",
"main": "dist/index.js",
"scripts": {
"compile": "tsc",
"prepublish": "npm run compile"
},
"repository": {
"type": "git",
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-restify"
},
"keywords": [
"GraphQL",
"Apollo",
"Server",
"Restify",
"Javascript"
],
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0",
"apollo-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/restify": "^4.3.2",
"apollo-server-integration-testsuite": "^1.0.0",
"restify": "^4.3.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/restify": "^4.3.2"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}

View file

@ -0,0 +1,7 @@
export {
RestifyGraphQLOptionsFunction,
RestifyHandler,
RestifyGraphiQLOptionsFunction,
graphqlRestify,
graphiqlRestify,
} from './restifyApollo';

View file

@ -1,9 +1,9 @@
import 'mocha';
import * as restify from 'restify';
import { graphiqlRestify, graphqlRestify } from './restifyApollo';
import testSuite, { schema, CreateAppOptions } from 'graphql-server-integration-testsuite';
import testSuite, { schema, CreateAppOptions } from 'apollo-server-integration-testsuite';
import { expect } from 'chai';
import { GraphQLOptions } from 'graphql-server-core';
import { GraphQLOptions } from 'apollo-server-core';
function createApp(options: CreateAppOptions = {}) {
const server = restify.createServer({

View file

@ -1,7 +1,7 @@
import * as restify from 'restify';
import * as url from 'url';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'graphql-server-core';
import * as GraphiQL from 'graphql-server-module-graphiql';
import { GraphQLOptions, HttpQueryError, runHttpQuery } from 'apollo-server-core';
import * as GraphiQL from 'apollo-server-module-graphiql';
export interface RestifyGraphQLOptionsFunction {
(req?: restify.Request, res?: restify.Response): GraphQLOptions | Promise<GraphQLOptions>;

View file

@ -0,0 +1,12 @@
{
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": []
},
"exclude": [
"node_modules",
"dist"
]
}

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-core"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-core"
},
"keywords": [
"GraphQL",
@ -20,20 +20,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"devDependencies": {
"@types/fibers": "0.0.29",
"@types/graphql": "^0.9.0",
"fibers": "1.0.15",
"meteor-promise": "^0.8.2"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.0"
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1,4 +1 @@
export { runQuery, LogFunction, LogMessage, LogStep, LogAction } from './runQuery';
export { runHttpQuery, HttpQueryRequest, HttpQueryError } from './runHttpQuery';
export { default as GraphQLOptions, resolveGraphqlOptions } from './graphqlOptions';
export * from 'apollo-server-core';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-express"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-express"
},
"keywords": [
"GraphQL",
@ -22,31 +22,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/body-parser": "1.16.3",
"@types/connect": "^3.4.30",
"@types/express": "^4.0.35",
"@types/multer": "0.0.33",
"body-parser": "^1.17.2",
"connect": "^3.6.2",
"connect-query": "^1.0.0",
"express": "^4.15.3",
"graphql-server-integration-testsuite": "^1.0.0",
"multer": "^1.3.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/express": "^4.0.35",
"@types/graphql": "^0.9.1"
"apollo-server-express": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1,12 +1 @@
export {
ExpressGraphQLOptionsFunction,
ExpressHandler,
ExpressGraphiQLOptionsFunction,
graphqlExpress,
graphiqlExpress,
} from './expressApollo';
export {
graphqlConnect,
graphiqlConnect,
} from './connectApollo';
export * from 'apollo-server-express';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-hapi"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-hapi"
},
"keywords": [
"GraphQL",
@ -21,27 +21,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"boom": "^5.1.0",
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/boom": "4.3.2",
"@types/graphql": "^0.9.1",
"@types/hapi": "^16.1.4",
"graphql-server-integration-testsuite": "^1.0.0",
"hapi": "^16.4.3"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/hapi": "^16.1.2"
"apollo-server-hapi": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1,6 +1 @@
export { IRegister,
HapiOptionsFunction,
HapiPluginOptions,
HapiGraphiQLOptionsFunction,
HapiGraphiQLPluginOptions,
graphqlHapi, graphiqlHapi } from './hapiApollo';
export * from 'apollo-server-hapi';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-koa"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-koa"
},
"keywords": [
"GraphQL",
@ -21,28 +21,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/koa": "^2.0.39",
"@types/koa-bodyparser": "^3.0.23",
"@types/koa-router": "^7.0.22",
"graphql-server-integration-testsuite": "^1.0.0",
"koa": "^2.2.0",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.2.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/koa": "^2.0.39"
"apollo-server-koa": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1,7 +1 @@
export {
KoaGraphQLOptionsFunction,
KoaHandler,
KoaGraphiQLOptionsFunction,
graphqlKoa,
graphiqlKoa,
} from './koaApollo';
export * from 'apollo-server-koa';

View file

@ -2,8 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"types": []
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-lambda"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-lambda"
},
"keywords": [
"GraphQL",
@ -21,20 +21,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/aws-lambda": "0.0.10",
"@types/graphql": "^0.9.1",
"graphql-server-integration-testsuite": "^1.0.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
"apollo-server-lambda": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

9
packages/graphql-server-lambda/src/index.ts Executable file → Normal file
View file

@ -1,8 +1 @@
export {
LambdaHandler,
IHeaders,
LambdaGraphQLOptionsFunction,
LambdaGraphiQLOptionsFunction,
graphqlLambda,
graphiqlLambda,
} from './lambdaApollo';
export * from 'apollo-server-lambda';

View file

@ -2,13 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
],
"types": [
"@types/node"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-micro"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-micro"
},
"keywords": [
"GraphQL",
@ -21,25 +21,11 @@
"author": "Nick Nance <nance.nick@gmail.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"graphql-server-integration-testsuite": "^1.0.0",
"micro": "^7.3.3",
"microrouter": "^2.1.1"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1",
"micro": "^7.3.3"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/micro": "^7.3.0"
"apollo-server-micro": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1,6 +1 @@
export {
MicroGraphQLOptionsFunction,
MicroGraphiQLOptionsFunction,
microGraphql,
microGraphiql,
} from './microApollo';
export * from 'apollo-server-micro';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-module-graphiql"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-module-graphiql"
},
"keywords": [
"GraphQL",
@ -20,11 +20,12 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-module-graphiql": "^1.0.0"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"dependencies": {},
"devDependencies": {},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"

View file

@ -1,2 +1 @@
export { GraphiQLData, renderGraphiQL } from './renderGraphiQL';
export { resolveGraphiQLString } from './resolveGraphiQLString';
export * from 'apollo-server-module-graphiql';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-module-operation-store"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-module-operation-store"
},
"keywords": [
"GraphQL",
@ -20,14 +20,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1"
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-module-operation-store": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

View file

@ -1 +1 @@
export { OperationStore } from './operationStore';
export * from 'apollo-server-module-operation-store';

View file

@ -2,10 +2,7 @@
"extends": "../../tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"typeRoots": [
"node_modules/@types"
]
"outDir": "./dist"
},
"exclude": [
"node_modules",

View file

@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/apollostack/graphql-server/tree/master/packages/graphql-server-restify"
"url": "https://github.com/apollographql/apollo-server/tree/master/packages/graphql-server-restify"
},
"keywords": [
"GraphQL",
@ -21,24 +21,11 @@
"author": "Jonas Helfer <jonas@helfer.email>",
"license": "MIT",
"bugs": {
"url": "https://github.com/apollostack/graphql-server/issues"
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollostack/graphql-server#readme",
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"graphql-server-core": "^1.0.0",
"graphql-server-module-graphiql": "^1.0.0"
},
"devDependencies": {
"@types/restify": "^4.3.2",
"graphql-server-integration-testsuite": "^1.0.0",
"restify": "^4.3.0"
},
"peerDependencies": {
"graphql": "^0.9.0 || ^0.10.1"
},
"optionalDependencies": {
"@types/graphql": "^0.9.1",
"@types/restify": "^4.3.2"
"apollo-server-restify": "^1.0.0"
},
"typings": "dist/index.d.ts",
"typescript": {

Some files were not shown because too many files have changed in this diff Show more