Created
August 30, 2022 15:54
-
-
Save antonkalik/0ea2beb6ffc668e591a656d39d12a5a3 to your computer and use it in GitHub Desktop.
Resolvers GraphQL Schema
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