Skip to content

Commit

Permalink
Update settings.md
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorDiaconu authored Sep 19, 2019
1 parent fb00b62 commit fb90135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/settings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Settings

```js
// server
import { initialize } from 'meteor/cultofcoders:apollo';

initialize(ApolloConstructorOptions?, MeteorApolloOptions?);
Expand All @@ -14,6 +15,7 @@ initialize();
If you want to use engine GraphQL monitoring tool:
```js
// server
initialize(
{},
{
Expand All @@ -33,15 +35,13 @@ Do not override `schema`.
## `MeteorApolloOptions`
```js
// server
initialize({
// Here you can provide the apollo options provided here:
// https://www.apollographql.com/docs/apollo-server/api/apollo-server.html#constructor-options-lt-ApolloServer-gt

// You must not override schema

// Allow custom URI, rather than Meteor.absoluteUrl()
uri: 'http://endpoint:5000/graphql',

meteorAccounts: true, // You can disable reading the users via Meteor accounts
// You can add `schemaDirectives` and `context` without worrying about context update
schemaDirectives: {
Expand Down

0 comments on commit fb90135

Please sign in to comment.