Skip to content

Instantly share code, notes, and snippets.

@kingisaac95
Last active September 19, 2017 15:40
Show Gist options
  • Save kingisaac95/01f0f6c36c074599f64c8a3b0e077f75 to your computer and use it in GitHub Desktop.
Save kingisaac95/01f0f6c36c074599f64c8a3b0e077f75 to your computer and use it in GitHub Desktop.
DMS Resolver v1
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: 'kingdom.orjiewuru@gmail.com'
},
{
id: 2,
name: 'John Doe',
username: 'johndoe',
email: 'john.doe@gmail.com'
},
];
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