Created
November 26, 2018 17:10
-
-
Save stubailo/b5e6a5865c123417a7ee9d780ba36456 to your computer and use it in GitHub Desktop.
Revisions
-
stubailo created this gist
Nov 26, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import faker from 'faker'; const mocks = { Todo: () => ({ text: () => faker.sentence(), completed: () => faker.random.boolean(), }), User: () => ({ name: () => faker.name.findName() }) } addMockFunctionsToSchema({ schema, mocks });