Skip to content

Commit 25d7378

Browse files
committed
Review
1 parent 54fde96 commit 25d7378

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,14 @@ Add a `script` tag referencing the library:
419419
<script src="../lib/json-graphql-server.min.js"></script>
420420
```
421421

422-
It will expose the `GraphQLClientServer` as a global object:
422+
It will expose the `JsonGraphqlServer` as a global object:
423423

424424
```html
425425
<script type="text/javascript">
426426
window.addEventListener('load', function() {
427427
const data = [...];
428428
429-
const server = GraphQLClientServer({
429+
const server = JsonGraphqlServer({
430430
data,
431431
url: 'http://localhost:3000/graphql'
432432
});
@@ -458,11 +458,11 @@ npm install json-graphql-server
458458
```
459459

460460
```js
461-
import GraphQLClientServer from 'json-graphql-server';
461+
import JsonGraphqlServer from 'json-graphql-server';
462462

463463
const data = [...];
464464

465-
const server = GraphQLClientServer({
465+
const server = JsonGraphqlServer({
466466
data,
467467
url: 'http://localhost:3000/graphql'
468468
});
@@ -489,10 +489,10 @@ xhr.send(body);
489489

490490
```js
491491
import fetchMock from 'fetch-mock';
492-
import GraphQLClientServer from 'json-graphql-server';
492+
import JsonGraphqlServer from 'json-graphql-server';
493493

494494
const data = [...];
495-
const server = GraphQLClientServer({ data });
495+
const server = JsonGraphqlServer({ data });
496496

497497
fetchMock.post('http://localhost:3000/graphql', server.getHandler());
498498

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
],
3636
};
3737

38-
const server = GraphQLClientServer({
38+
const server = JsonGraphqlServer({
3939
data,
4040
url: 'http://localhost:3000/graphql'
4141
});

src/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import GraphQLClientServer from './graphQLClientServer';
22

33
if (typeof window !== 'undefined') {
4-
window.GraphQLClientServer = GraphQLClientServer;
4+
window.JsonGraphqlServer = GraphQLClientServer;
55
}
66

77
export default GraphQLClientServer;

0 commit comments

Comments
 (0)