Skip to content

Commit 45c2585

Browse files
committed
Documentation updates
1 parent 08e6298 commit 45c2585

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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';
2323
import { ApolloLink } from 'apollo-link';
2424
import { 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
2931
const client = new ApolloClient({
@@ -64,7 +66,10 @@ import { gql } from 'graphql-tag';
6466

6567
client.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

0 commit comments

Comments
 (0)