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

![travis (.org)](https://img.shields.io/travis/marmelab/json-graphql-server.svg) ![github top language](https://img.shields.io/github/languages/top/marmelab/json-graphql-server.svg) ![David. dependencies](https://david-dm.org/marmelab/json-graphql-server.

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis

Popular json-graphql-server functions

Similar packages