mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 17:35:42 +08:00
12 lines
369 B
JavaScript
12 lines
369 B
JavaScript
const SettingsService = require('../../services/settings');
|
|
const util = require('./util');
|
|
|
|
/**
|
|
* Creates a set of loaders based on a GraphQL context.
|
|
* @param {Object} context the context of the GraphQL request
|
|
* @return {Object} object of loaders
|
|
*/
|
|
module.exports = () => ({
|
|
Settings: new util.SingletonResolver(() => SettingsService.retrieve())
|
|
});
|