require('graphql');
var { default: graphql } = require('graphql-anywhere');
var { default: gql } = require('graphql-tag');
var resolver = (name, root, args) => {
if (name == 'find') {
if (!args.storages) throw new Error('Argument storages is not founded.');
else return {};
} else {
return null;
}
};
exports.default = (query, variables, context) => graphql(resolver, query, null, context, variables);