0.3.0 • Published 3 years ago

postgraphile-apollo-federation-plugin v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

postgraphile-apollo-federation-plugin

Travis CI npm version

Apollo federation support for PostGraphile (or any Graphile Engine schema).

Installation

npm install postgraphile-apollo-federation-plugin

CLI usage

postgraphile --append-plugins postgraphile-apollo-federation-plugin

Library usage

const express = require("express");
const { postgraphile } = require("postgraphile");
const { default: postgraphile-apollo-federation-plugin } = require("postgraphile-apollo-federation-plugin");

const app = express();

app.use(
  postgraphile(process.env.DATABASE_URL, "public", {
    appendPlugins: [postgraphile-apollo-federation-plugin],
  })
);

app.listen(process.env.PORT || 3000);

How?

This plugin exposes the Global Object Identification Specification (i.e. Node interface) in a way that's compatible with Apollo Federation.

Requires PostGraphile v4.4.2-rc.0+

Do you need this?

Only use this if you're planning to have your API consumed by Apollo Federation; exposing these redundant interfaces to regular users may be confusing.

Status

Proof of concept. No tests, use at your own risk! Pull requests very welcome.

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago