@@ -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
463463const 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
491491import fetchMock from ' fetch-mock' ;
492- import GraphQLClientServer from ' json-graphql-server' ;
492+ import JsonGraphqlServer from ' json-graphql-server' ;
493493
494494const data = [... ];
495- const server = GraphQLClientServer ({ data });
495+ const server = JsonGraphqlServer ({ data });
496496
497497fetchMock .post (' http://localhost:3000/graphql' , server .getHandler ());
498498
0 commit comments