Created
August 30, 2022 18:26
-
-
Save antonkalik/00ce2e8727ac04878544f634633efe05 to your computer and use it in GitHub Desktop.
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 characters
const fakeData = { | |
id: 4838745, | |
value: 'Some Random String', | |
}; | |
module.exports = { | |
Query: { | |
getFakeDataExample: () => fakeData, | |
}, | |
Mutation: { | |
updateFakeData: (_, { value }) => { | |
return { | |
...fakeData, | |
value, | |
}; | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment