Files
apollo/packages/test-e2e/apollo-server/connectors/channels.js
T
2019-11-08 19:59:27 +01:00

14 lines
299 B
JavaScript

const channels = [
{ id: 'general', name: 'General discussion' },
{ id: 'random', name: 'Have fun chatting!' },
{ id: 'help', name: 'Ask for or give help' },
]
exports.getAll = (context) => {
return channels
}
exports.getOne = (id, context) => {
return channels.find(c => c.id === id)
}