Skip to content

Instantly share code, notes, and snippets.

View lorensr's full-sized avatar

Loren ☺️ lorensr

View GitHub Profile
import { mockServer, MockList } from 'graphql-tools';
import casual from 'casual-browserify';
// customize mocking per type (i.e. Integer, Float, String)
mockServer(schema, {
Int: () => 6,
Float: () => 22.1,
String: () => 'Hello',
});