Last active
September 19, 2017 15:40
-
-
Save kingisaac95/01f0f6c36c074599f64c8a3b0e077f75 to your computer and use it in GitHub Desktop.
DMS Resolver v1
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 documents = [ | |
{ | |
id: 1, | |
title: 'document 1', | |
content: 'The first document' | |
}, | |
{ | |
id: 2, | |
title: 'document 2', | |
content: 'The second document' | |
}, | |
]; | |
const users = [ | |
{ | |
id: 1, | |
name: 'Kingdom Orjiewuru', | |
username: 'kingisaac95', | |
email: '[email protected]' | |
}, | |
{ | |
id: 2, | |
name: 'John Doe', | |
username: 'johndoe', | |
email: '[email protected]' | |
}, | |
]; | |
module.exports = { | |
Query: { | |
allDocuments: () => documents, | |
allUsers: () => users, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment