How to use json-graphql-server - 2 common examples

To help you get started, we’ve selected a few json-graphql-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marmelab / react-admin / examples / demo / src / fakeServer / graphql.js View on Github external
export default () => {
    const data = generateData({ serializeDate: false });
    const restServer = JsonGraphqlServer({ data });
    const handler = restServer.getHandler();

    fetchMock.mock('begin:http://localhost:4000', handler);
    return () => fetchMock.restore();
};
github bootstrap-styled / ra-ui / examples / demo / src / fakeServer / graphql.js View on Github external
export default () => {
    const data = generateData({ serializeDate: false });
    const restServer = JsonGraphqlServer({ data });
    const handler = restServer.getHandler();

    fetchMock.mock('begin:http://localhost:4000', handler);
    return () => fetchMock.restore();
};

json-graphql-server

![github top language](https://img.shields.io/github/languages/top/marmelab/json-graphql-server.svg) ![npm](https://img.shields.io/npm/v/json-graphql-server.svg) ![github contributors](https://img.shields.io/github/contributors/marmelab/json-graphql-serve

MIT
Latest version published 4 months ago

Package Health Score

81 / 100
Full package analysis

Popular json-graphql-server functions

Similar packages