Skip to content

Commit

Permalink
Fix the Koa docs for endpointURL.
Browse files Browse the repository at this point in the history
Also tidied up some of the surrounding grammar and formatting.
  • Loading branch information
jaydenseric committed Mar 30, 2020
1 parent 981e805 commit 177eccf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
10 changes: 6 additions & 4 deletions docs/docs/integrations/altair-express-middleware.md
Expand Up @@ -3,16 +3,18 @@ parent: Integrations
---

## altair-express-middleware

npm
{: .label .label-red }
Express
{: .label .label-purple }

You can use altair with an express server using [altair-express-middleware](https://www.npmjs.com/package/altair-express-middleware).
You can use Altair with an Express server using [altair-express-middleware](https://www.npmjs.com/package/altair-express-middleware).

This is an express middleware for mounting an instance of altair GraphQL client.
This is an Express middleware for mounting an instance of Altair GraphQL client.

#### Installation

This is a node module and can be installed using npm:

```
Expand All @@ -36,12 +38,12 @@ import { schema } from './schema';

const server = express();

// Mount your graphQL server endpoint
// Mount your GraphQL server endpoint
server.use('/graphql', bodyParser.json(), graphqlExpress({
schema
}));

// Mount your altair GraphQL client
// Mount your Altair GraphQL client
server.use('/altair', altairExpress({
endpointURL: '/graphql',
subscriptionsEndpoint: `ws://localhost:4000/subscriptions`,
Expand Down
8 changes: 5 additions & 3 deletions docs/docs/integrations/altair-koa-middleware.md
Expand Up @@ -3,16 +3,18 @@ parent: Integrations
---

## altair-koa-middleware

npm
{: .label .label-red }
Koa
{: .label .label-purple }

You can use altair with a koa server using [altair-koa-middleware](https://www.npmjs.com/package/altair-koa-middleware).
You can use Altair with a Koa server using [altair-koa-middleware](https://www.npmjs.com/package/altair-koa-middleware).

This is an koa middleware for mounting an instance of altair GraphQL client.
This is an koa middleware for mounting an instance of Altair GraphQL client.

#### Installation

This is a node module and can be installed using npm:

```
Expand All @@ -38,7 +40,7 @@ createRouteExplorer({
url: '/altair',
router,
opts: {
endpoint: '/graphql',
endpointURL: '/graphql',
subscriptionsEndpoint: `ws://localhost:4000/subscriptions`,
initialQuery: `{ getData { id name surname } }`,
},
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/integrations/altair-static.md
Expand Up @@ -3,13 +3,15 @@ parent: Integrations
---

## altair-static

npm
{: .label .label-red }

[altair-static](https://www.npmjs.com/package/altair-static) renders Altair for you as a string with all the options you pass to it, as well as providing you with all the assets (JS, CSS, images, etc) used by the Altair app, giving you the ability to use Altair in any NodeJS project.


#### Installation

This is a node module and can be installed using npm:

```
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/integrations/gatsby-plugin-altair-graphql.md
Expand Up @@ -3,6 +3,7 @@ parent: Integrations
---

## gatsby-plugin-altair-graphql

npm
{: .label .label-red }
Gatsby
Expand All @@ -11,6 +12,7 @@ Gatsby
[gatsby-plugin-altair-graphql](https://www.npmjs.com/package/gatsby-plugin-altair-graphql) adds an instance of [Altair GraphQL client](https://altair.sirmuel.design/) to [Gatsby](https://www.gatsbyjs.org/), discovered at `/__altair` route.

#### Installation

This is a node module and can be installed using npm:

```
Expand Down

0 comments on commit 177eccf

Please sign in to comment.