mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 17:54:04 +08:00
13 lines
353 B
JavaScript
13 lines
353 B
JavaScript
const Settings = require('../../models/setting');
|
|
|
|
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(() => Settings.retrieve())
|
|
});
|