How to use the dataloader-sequelize.EXPECTED_OPTIONS_KEY function in dataloader-sequelize

To help you get started, we’ve selected a few dataloader-sequelize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github almost-full-stack / sequelize-graphql-schema / dist / sequelize-graphql-schema.js View on Github external
var attributeFields = require('./graphql-sequelize/attributeFields');

var sequelizeConnection = relay.sequelizeConnection;

var camelCase = require('camelcase');

var remoteSchema = require('./remoteSchema');

var _require4 = require('graphql-request'),
    GraphQLClient = _require4.GraphQLClient;

var _ = require('lodash');

var _require5 = require('dataloader-sequelize'),
    createContext = _require5.createContext,
    EXPECTED_OPTIONS_KEY = _require5.EXPECTED_OPTIONS_KEY,
    resetCache = _require5.resetCache;

var TRANSACTION_NAMESPACE = 'sequelize-graphql-schema';

var cls = require('cls-hooked');

var uuid = require('uuid/v4');

var sequelizeNamespace = cls.createNamespace(TRANSACTION_NAMESPACE);
var dataloaderContext;
var options = {
  exclude: [],
  includeArguments: {},
  remote: {},
  dataloader: false,
  customTypes: [],

dataloader-sequelize

Batching and simplification of Sequelize with facebook/dataloader

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis