From a5dd15875ae5879e65e9a02915a51b4ba0bdb6be Mon Sep 17 00:00:00 2001 From: William Li Date: Thu, 27 Sep 2018 16:21:19 +0800 Subject: [PATCH] invalid object is passed to AccountsServer's constructor --- src/pages/docs/transport/graphql.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/docs/transport/graphql.md b/src/pages/docs/transport/graphql.md index 52a3d8a..fc1ed54 100644 --- a/src/pages/docs/transport/graphql.md +++ b/src/pages/docs/transport/graphql.md @@ -39,7 +39,7 @@ const db = mongoose.connection const password = new AccountsPassword() -const accountsServer = new AccountsServer({ +const accountsServer = new AccountsServer( { db: new MongoDBInterface(db), tokenSecret: 'SECRET', @@ -47,7 +47,7 @@ const accountsServer = new AccountsServer({ { password, } -}); +); ``` Next, import `createAccountsGraphQL` method from this package, and run it with your `AccountsServer`: