File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ There is also a peer dependencie to `graphql` which you should already have inst
1313
1414## Usage
1515
16- This is a minimal example to create an instance of an apollo client. Refer to the documentation of the
16+ This is a minimal example to create an instance of an apollo client with SlicknodeLink . Refer to the documentation of the
1717[ apollo-client] ( https://www.apollographql.com/client ) to learn how to use and customize it:
1818
1919``` javascript
@@ -23,7 +23,9 @@ import { InMemoryCache } from 'apollo-cache-inmemory';
2323import { ApolloLink } from ' apollo-link' ;
2424import { HttpLink } from ' apollo-link-http' ;
2525
26- const slicknodeLink = new SlicknodeLink ();
26+ const slicknodeLink = new SlicknodeLink ({
27+ debug: true // Write debug info to console, disable in production
28+ });
2729
2830// Create the ApolloClient instance to use in your projects
2931const client = new ApolloClient ({
@@ -64,7 +66,10 @@ import { gql } from 'graphql-tag';
6466
6567client .query (gql `
6668 mutation LoginUser {
67- loginEmailPassword (input : {email : " [email protected] " , password : " xyz123" }) @authenticate { 69+ loginEmailPassword (input : {
70+ 71+ password : " xyz123"
72+ }) @authenticate {
6873 accessToken
6974 refreshToken
7075 accessTokenLifetime
You can’t perform that action at this time.
0 commit comments