Socket
Socket
Sign inDemoInstall

simple-graphql

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-graphql - npm Package Compare versions

Comparing version 4.0.16 to 4.1.0

4

dist/build/applyPluginsToModels.d.ts

@@ -1,5 +0,5 @@

import { PluginConfig, PluginOptionsMap, SGModelCtrl } from '../Definition';
import { PluginConfig, PluginOptionsMap, SGModelCtrl } from '../index';
declare const _default: (models: Array<SGModelCtrl>, plugins: Array<PluginConfig>, defaultOptions: PluginOptionsMap) => {
[key: string]: SGModelCtrl<import("../Definition").SGModel<any>>;
[key: string]: SGModelCtrl<import("..").SGModel<any>>;
};
export default _default;
import { SGSchema } from '../definition/SGSchema';
import { PluginConfig, PluginOptionsMap } from '../Definition';
import { PluginConfig, PluginOptionsMap } from '../index';
declare const _default: (schemas: Array<SGSchema>, plugins: Array<PluginConfig>, defaultOptions: PluginOptionsMap) => {

@@ -4,0 +4,0 @@ [key: string]: SGSchema;

@@ -1,5 +0,5 @@

import { DataTypeConfig, InterfaceContext, ResolverContext, TypeConfig, TypeContext } from '../Definition';
import { SGSchema } from '../definition/SGSchema';
import { DataTypeConfig, InterfaceContext, ResolverContext, TypeConfig, TypeContext } from '../index';
declare type Context = ResolverContext & InterfaceContext;
export default function (types: Array<TypeConfig>, dataTypes: Array<DataTypeConfig>, schemas: Array<SGSchema>, context: Context): TypeContext;
export {};

@@ -1,3 +0,3 @@

import { InterfaceContext, SGContext } from '../Definition';
import { InterfaceContext, SGContext } from '../index';
declare const _default: (context: SGContext) => InterfaceContext;
export default _default;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../Definition';
import { PluginConfig } from '../index';
declare const _default: (plugins: Array<PluginConfig>) => Array<PluginConfig>;
export default _default;

@@ -1,3 +0,3 @@

import { HookConfig, ResolverContext, SGContext } from '../Definition';
import { HookConfig, ResolverContext, SGContext } from '../index';
declare const _default: (hooks: Array<HookConfig>, sgContext: SGContext) => ResolverContext;
export default _default;

@@ -1,3 +0,3 @@

import { MutationConfigMap, ResolverContext, TypeContext } from '../Definition';
import * as graphql from 'graphql';
import { MutationConfigMap, ResolverContext, TypeContext } from '../index';
declare const _default: (mutationConfigMaps: Array<MutationConfigMap>, payloadFields: {

@@ -4,0 +4,0 @@ [key: string]: graphql.GraphQLFieldConfig<any, any, {

import * as graphql from 'graphql';
import { InterfaceContext, QueryConfigMap, ResolverContext, TypeContext } from '../Definition';
import { InterfaceContext, QueryConfigMap, ResolverContext, TypeContext } from '../index';
declare const _default: (queryConfigMaps: Array<QueryConfigMap>, context: ResolverContext & TypeContext & InterfaceContext) => {

@@ -4,0 +4,0 @@ [key: string]: graphql.GraphQLFieldConfig<any, any, {

import Sequelize from 'sequelize';
import { SGSchema } from '../definition/SGSchema';
import { SGContext, SGModelCtrl } from '../Definition';
import { SGContext, SGModelCtrl } from '../index';
declare const _default: (sequelize: Sequelize.Sequelize, schemas: Array<SGSchema>, context: SGContext) => Array<SGModelCtrl>;
export default _default;

@@ -1,2 +0,2 @@

import { SGContext, SGService, SGServiceMap } from '../Definition';
import { SGContext, SGService, SGServiceMap } from '../index';
declare const _default: (services: Array<typeof SGService & {

@@ -3,0 +3,0 @@ new (): SGService;

@@ -1,3 +0,3 @@

import { DataTypeConfig } from '../../Definition';
import { DataTypeConfig } from '../../index';
declare const _default: DataTypeConfig[];
export default _default;
import { Sequelize } from 'sequelize';
import { GraphQLSchema } from 'graphql';
import { BuildConfig, BuildOptions, SGContext } from '../Definition';
import { BuildConfig, BuildOptions, SGContext } from '../index';
export declare function buildGraphQLContext(sequelize: Sequelize, config: BuildConfig, buildOptions: BuildOptions): {

@@ -5,0 +5,0 @@ graphQLSchema: GraphQLSchema;

import { FindOptions } from 'sequelize';
import { GraphQLResolveInfo } from 'graphql';
import { SGModel, SGModelCtrl } from '../../Definition';
import { SGModel, SGModelCtrl } from '../../index';
export default function <M extends SGModel>(this: SGModelCtrl<M>, id: number, options: FindOptions, context: any, info: GraphQLResolveInfo, path?: string): Promise<M | null>;
import { FindOptions } from 'sequelize';
import { GraphQLResolveInfo } from 'graphql';
import { SGModel, SGModelCtrl } from '../../Definition';
import { SGModel, SGModelCtrl } from '../../index';
export default function <M extends SGModel>(this: SGModelCtrl<M>, options: FindOptions, context: any, info: GraphQLResolveInfo, path?: string): Promise<M | null>;
import { GraphQLResolveInfo } from 'graphql';
import { SGModel, SGModelCtrl } from '../../Definition';
import { SGModel, SGModelCtrl } from '../../index';
export default function <M extends SGModel>(this: SGModelCtrl<M>, args: {

@@ -4,0 +4,0 @@ info?: GraphQLResolveInfo;

@@ -1,2 +0,2 @@

import { SGModel, SGModelCtrl } from '../../Definition';
import { SGModel, SGModelCtrl } from '../../index';
declare type Selection = {

@@ -3,0 +3,0 @@ namedType?: string;

import { GraphQLResolveInfo } from 'graphql';
import { SGModel, SGModelCtrl } from '../../Definition';
import { Order, OrderItem } from 'sequelize';
import { Includeable } from 'sequelize/types/lib/model';
import { SGModel, SGModelCtrl } from '../../index';
export default function <M extends SGModel>(this: SGModelCtrl<M>, args: {

@@ -6,0 +6,0 @@ attributes?: Array<string>;

@@ -1,2 +0,2 @@

import { SGModel, SGModelCtrl } from '../../Definition';
import { SGModel, SGModelCtrl } from '../../index';
import { GraphQLResolveInfo } from 'graphql';

@@ -3,0 +3,0 @@ import { OrderItem } from 'sequelize';

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig[];
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../Definition';
import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { ColumnFieldConfigMap, HookOptionsMap, InputFieldConfigMap, LinkedFieldConfigMap, MutationConfigMap, QueryConfigMap, SchemaOptions } from '../Definition';
import Sequelize, { BelongsToManyOptions, BelongsToOptions, HasManyOptions, HasOneOptions, OrderItem } from 'sequelize';
import { ColumnFieldConfigMap, HookOptionsMap, InputFieldConfigMap, LinkedFieldConfigMap, MutationConfigMap, QueryConfigMap, SchemaOptions } from '../index';
/**

@@ -4,0 +4,0 @@ * @public

@@ -0,4 +1,297 @@

import { GraphQLFieldResolver, GraphQLInputType, GraphQLInterfaceType, GraphQLOutputType, GraphQLResolveInfo } from 'graphql';
import { CountOptions, FindOptions, Model, ModelAttributeColumnOptions, ModelOptions, Sequelize } from 'sequelize';
import { SGSchema } from './definition/SGSchema';
import { DataType } from 'sequelize/types/lib/data-types';
import resolveRelayConnection from './build/modelStaticsMethod/resolveRelayConnection';
import resolveQueryOption from './build/modelStaticsMethod/resolveQueryOption';
import parseSelections from './build/modelStaticsMethod/parseSelections';
import parseAttributes from './build/modelStaticsMethod/parseAttributes';
import hasSelection from './build/modelStaticsMethod/hasSelection';
import findOneForGraphQL from './build/modelStaticsMethod/findOneForGraphQL';
import findByPkForGraphQL from './build/modelStaticsMethod/findByPkForGraphQL';
export declare abstract class SGModel<TModelAttributes extends {} = any> extends Model<TModelAttributes> {
id: number;
}
export interface SGModelStatic {
resolveRelayConnection: typeof resolveRelayConnection;
resolveQueryOption: typeof resolveQueryOption;
parseSelections: typeof parseSelections;
parseAttributes: typeof parseAttributes;
hasSelection: typeof hasSelection;
findOneForGraphQL: typeof findOneForGraphQL;
findByPkForGraphQL: typeof findByPkForGraphQL;
withCache: <T, M extends SGModel<T>>(this: {
new (): M;
} & typeof Model) => {
findAll: (options?: FindOptions) => Promise<M[]>;
findOne: (options?: FindOptions) => Promise<M | null>;
count: (options?: CountOptions) => Promise<number>;
};
clearCache: () => Promise<void>;
sgSchema: SGSchema;
getSGContext: () => SGContext;
}
export declare type SGModelCtrl<T extends SGModel = SGModel> = typeof SGModel & {
new (): T;
} & SGModelStatic;
export declare abstract class SGService {
getSGContext: () => SGContext;
}
export interface SGServiceMap {
[key: string]: SGService;
}
export interface SGModelCtrlMap {
[key: string]: SGModelCtrl;
}
export declare type SGContext = {
sequelize: Sequelize;
schemas: {
[key: string]: SGSchema;
};
models: SGModelCtrlMap;
services: SGServiceMap;
} & TypeContext;
export declare type ResolverContext = {
hookFieldResolve: (path: string, config: LinkedFieldConfig) => GraphQLFieldResolver<any, any>;
hookQueryResolve: (path: string, config: QueryConfig) => GraphQLFieldResolver<any, any>;
hookMutationResolve: (path: string, config: MutationConfig) => GraphQLFieldResolver<any, any>;
};
export declare type InterfaceContext = {
interface: (name: string) => GraphQLInterfaceType;
registerInterface: (name: string, interfaceType: GraphQLInterfaceType) => void;
};
export declare type TypeContext = {
typeConfig: (name: string) => TypeConfig | null;
};
export interface ResolveContext {
}
export declare type FieldResolve<T = any> = (source: T, args: {
[key: string]: any;
}, context: ResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type RootResolve = (args: {
[key: string]: any;
}, context: ResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type TypeConfig = {
name: string;
description?: string;
inputType?: GraphQLInputType | null;
additionalInput?: InputFieldConfigMap;
outputType?: GraphQLOutputType | null;
outputResolve?: FieldResolve;
columnOptions?: ModelAttributeColumnOptions | ((schema: SGSchema, fieldName: string, options: ColumnFieldConfig) => ModelAttributeColumnOptions | null);
};
export declare type FieldTypeMetadata = {
description?: string;
};
export declare type OutputFieldTypeMetadata = FieldTypeMetadata & {
hookOptions?: HookOptionsMap;
graphql?: {
hidden?: boolean;
resolve?: FieldResolve;
dependentFields?: Array<string>;
input?: InputFieldConfigMap;
};
};
export declare type ConditionFieldMapper = (option: {
where: any;
attributes: Array<string>;
}, argValue: any, context: SGContext) => void;
export declare type InputFieldTypeMetadata = FieldTypeMetadata & {
graphql?: {
hidden?: boolean;
defaultValue?: any;
mapper?: ConditionFieldMapper;
};
};
export declare type FieldTypeDefinition<T extends FieldTypeMetadata = FieldTypeMetadata> = ({
type: 'String' | 'Number' | 'Integer' | 'Date' | 'JSON' | 'Boolean' | string;
enum?: undefined;
elements?: undefined;
properties?: undefined;
values?: undefined;
discriminator?: undefined;
mapping?: undefined;
} | {
enum: string[];
type?: undefined;
elements?: undefined;
properties?: undefined;
values?: undefined;
discriminator?: undefined;
mapping?: undefined;
} | {
elements: FieldTypeDefinition<T>;
type?: undefined;
enum?: undefined;
properties?: undefined;
values?: undefined;
discriminator?: undefined;
mapping?: undefined;
} | {
properties: {
[key: string]: FieldTypeDefinition<T>;
};
type?: undefined;
enum?: undefined;
elements?: undefined;
values?: undefined;
discriminator?: undefined;
mapping?: undefined;
} | {
values: FieldTypeDefinition<T>;
type?: undefined;
enum?: undefined;
elements?: undefined;
properties?: undefined;
discriminator?: undefined;
mapping?: undefined;
} | {
discriminator: string;
mapping: {
[key: string]: FieldTypeDefinition<T>;
};
type?: undefined;
enum?: undefined;
elements?: undefined;
properties?: undefined;
values?: undefined;
}) & {
definitions?: {
[key: string]: FieldTypeDefinition<T>;
};
nullable?: boolean;
metadata?: T;
};
export declare type InputFieldConfig = FieldTypeDefinition<InputFieldTypeMetadata>;
export declare type InputFieldConfigMap = {
[key: string]: InputFieldConfig;
};
export declare type OutputFieldConfig = FieldTypeDefinition<OutputFieldTypeMetadata>;
export declare type OutputFieldConfigMap = {
[key: string]: OutputFieldConfig;
};
export declare type LinkedFieldConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input?: InputFieldConfigMap;
dependentFields?: Array<string>;
output: OutputFieldConfig;
resolve: FieldResolve;
};
export declare type LinkedFieldConfigMap = {
[key: string]: LinkedFieldConfig;
};
export declare type ColumnFieldConfig = FieldTypeDefinition<OutputFieldTypeMetadata & InputFieldTypeMetadata> & {
metadata?: {
graphql?: {
initializable?: boolean;
updatable?: boolean;
searchable?: boolean;
};
column?: Omit<ModelAttributeColumnOptions, 'type'> & {
type?: DataType;
constraints?: boolean;
};
};
};
export declare type ColumnFieldConfigMap = {
[key: string]: ColumnFieldConfig;
};
export declare type DataTypeConfig = {
name: string;
description?: string;
definition: FieldTypeDefinition<OutputFieldTypeMetadata & InputFieldTypeMetadata>;
columnOptions?: ModelAttributeColumnOptions;
};
export declare type QueryConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input?: InputFieldConfigMap;
output: OutputFieldConfig;
resolve: RootResolve;
};
export declare type QueryConfigMap = {
[key: string]: QueryConfig;
};
export declare type MutationConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input: InputFieldConfigMap;
output: OutputFieldConfigMap;
mutateAndGetPayload: RootResolve;
};
export declare type MutationConfigMap = {
[key: string]: MutationConfig;
};
export interface PluginOptions {
enable: boolean;
}
export interface PluginOptionsMap {
}
export declare type SchemaOptions = {
description?: string;
plugin?: PluginOptionsMap;
tableOptions?: ModelOptions<any>;
};
export interface HookOptionsMap {
}
export declare type HookTarget<T = any> = {
name: string;
options?: T;
} & ({
type: 'field';
targetConfig: LinkedFieldConfig;
} | {
type: 'query';
targetConfig: QueryConfig;
} | {
type: 'mutation';
targetConfig: MutationConfig;
});
export declare type HookFunc<T = any> = (target: HookTarget<T>, invokeInfo: {
source?: any;
args: {
[key: string]: any;
};
context: ResolveContext;
info: GraphQLResolveInfo;
sgContext: SGContext;
}, next: () => Promise<any>) => Promise<any>;
export declare type HookConfig<T = any> = {
name: string;
description?: string;
priority?: number;
filter?: (target: HookTarget<T>) => boolean;
hook: HookFunc<T>;
};
export declare type PluginConfig<T = PluginOptions> = {
name: string;
description?: string;
priority?: number;
defaultOptions?: T;
applyToSchema?: (schema: SGSchema, options: T, schemas: Array<SGSchema>) => void;
applyToModel?: (model: SGModelCtrl, options: T, models: Array<SGModelCtrl>) => void;
};
export declare type BuildOptions = {
plugin?: PluginOptionsMap;
};
export declare type BuildConfig = {
dataTypes?: Array<DataTypeConfig>;
types?: Array<TypeConfig>;
schemas?: Array<SGSchema>;
services?: Array<typeof SGService & {
new (): SGService;
}>;
hooks?: Array<HookConfig>;
plugins?: Array<PluginConfig>;
queries?: QueryConfigMap;
mutations?: MutationConfigMap;
};
export interface CacheManager {
get: (key: string) => Promise<any>;
set: (key: string, value: any, expire?: number) => Promise<void>;
del: (pattern: string) => Promise<number>;
}
export * from './definition/SGSchema';
export * from './build';
export * from './Definition';
export * from './plugin';

@@ -13,6 +13,13 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SGService = exports.SGModel = void 0;
const sequelize_1 = require("sequelize");
class SGModel extends sequelize_1.Model {
}
exports.SGModel = SGModel;
class SGService {
}
exports.SGService = SGService;
__exportStar(require("./definition/SGSchema"), exports);
__exportStar(require("./build"), exports);
__exportStar(require("./Definition"), exports);
__exportStar(require("./plugin"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type AddMutationOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ addMutation?: AddMutationOptions;

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type BulkAddMutationOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ bulkAddMutation?: BulkAddMutationOptions;

@@ -1,2 +0,2 @@

import { CacheManager, SGModel, SGModelCtrl } from '../../Definition';
import { CacheManager, SGModel, SGModelCtrl } from '../../index';
import { CountOptions, FindOptions } from 'sequelize';

@@ -3,0 +3,0 @@ export default class Cache<M extends SGModel> {

@@ -1,3 +0,3 @@

import { SGModelCtrl } from '../../Definition';
import { Includeable } from 'sequelize';
import { SGModelCtrl } from '../../index';
export default function (data: any, model: SGModelCtrl, include?: Includeable | Includeable[]): any;

@@ -1,2 +0,2 @@

import { SGModel } from '../../Definition';
import { SGModel } from '../../index';
export default function (instance: SGModel | null): any;

@@ -1,2 +0,2 @@

import { CacheManager } from '../../Definition';
import { CacheManager } from '../../index';
import { LRUMap } from 'lru_map';

@@ -3,0 +3,0 @@ export default class LruCacheManager implements CacheManager {

@@ -1,2 +0,2 @@

import { CacheManager, PluginConfig, PluginOptions } from '../Definition';
import { CacheManager, PluginConfig, PluginOptions } from '../index';
declare type CacheOptions = PluginOptions & {

@@ -7,3 +7,3 @@ prefix?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -10,0 +10,0 @@ cache?: CacheOptions;

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type DeleteMutationOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ deleteMutation?: DeleteMutationOptions;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../Definition';
declare const _default: PluginConfig<import("../Definition").PluginOptions>;
import { PluginConfig } from '../index';
declare const _default: PluginConfig<import("..").PluginOptions>;
export default _default;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../Definition';
declare const _default: PluginConfig<import("../Definition").PluginOptions>;
import { PluginConfig } from '../index';
declare const _default: PluginConfig<import("..").PluginOptions>;
export default _default;

@@ -1,2 +0,2 @@

import { HookOptionsMap, InputFieldConfigMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, InputFieldConfigMap, PluginConfig, PluginOptions } from '../index';
declare type PluralQueryOptions = PluginOptions & {

@@ -7,3 +7,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -10,0 +10,0 @@ pluralQuery?: PluralQueryOptions;

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type SaveMutationOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ saveMutation?: SaveMutationOptions;

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type SingularQueryOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ singularQuery?: SingularQueryOptions;

@@ -1,3 +0,3 @@

import { PluginConfig, PluginOptions } from '../Definition';
declare module '../Definition' {
import { PluginConfig, PluginOptions } from '../index';
declare module '../index' {
interface PluginOptionsMap {

@@ -4,0 +4,0 @@ timestamp?: PluginOptions;

@@ -1,2 +0,2 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../Definition';
import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type UpdateMutationOptions = PluginOptions & {

@@ -6,3 +6,3 @@ name?: string;

};
declare module '../Definition' {
declare module '../index' {
interface PluginOptionsMap {

@@ -9,0 +9,0 @@ updateMutation?: UpdateMutationOptions;

@@ -1,3 +0,3 @@

import { PluginConfig, PluginOptions } from '../Definition';
declare module '../Definition' {
import { PluginConfig, PluginOptions } from '../index';
declare module '../index' {
interface PluginOptionsMap {

@@ -4,0 +4,0 @@ version?: PluginOptions;

import { GraphQLFieldConfigMap } from 'graphql';
import { OutputFieldConfig, ResolverContext, TypeContext } from '../Definition';
import { OutputFieldConfig, ResolverContext, TypeContext } from '../index';
declare type Context = ResolverContext & TypeContext;
declare const toGraphQLFieldConfigMap: (name: string, postfix: string, fields: {
[id: string]: import("../Definition").FieldTypeDefinition<import("../Definition").OutputFieldTypeMetadata>;
[id: string]: import("..").FieldTypeDefinition<import("..").OutputFieldTypeMetadata>;
}, context: Context) => GraphQLFieldConfigMap<any, any>;
export default toGraphQLFieldConfigMap;
import { GraphQLInputFieldConfigMap } from 'graphql';
import { InputFieldConfig, TypeContext } from '../Definition';
import { InputFieldConfig, TypeContext } from '../index';
declare const toGraphQLInputFieldConfigMap: (name: string, fields: {
[id: string]: import("../Definition").FieldTypeDefinition<import("../Definition").InputFieldTypeMetadata>;
[id: string]: import("..").FieldTypeDefinition<import("..").InputFieldTypeMetadata>;
}, context: TypeContext) => GraphQLInputFieldConfigMap;
export default toGraphQLInputFieldConfigMap;
{
"name": "simple-graphql",
"version": "4.0.16",
"version": "4.1.0",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc