From fb9013576b9171a3c8be8f7b85eb02cc779d4ea0 Mon Sep 17 00:00:00 2001 From: Theodor Diaconu Date: Thu, 19 Sep 2019 09:35:58 +0300 Subject: [PATCH] Update settings.md --- docs/settings.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/settings.md b/docs/settings.md index 0150938..15f8437 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -1,6 +1,7 @@ # Settings ```js +// server import { initialize } from 'meteor/cultofcoders:apollo'; initialize(ApolloConstructorOptions?, MeteorApolloOptions?); @@ -14,6 +15,7 @@ initialize(); If you want to use engine GraphQL monitoring tool: ```js +// server initialize( {}, { @@ -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: {