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 5.0.1 to 5.0.2

26

dist/index.d.ts

@@ -76,5 +76,5 @@ import { GraphQLFieldResolver, GraphQLInputType, GraphQLInterfaceType, GraphQLOutputType, GraphQLResolveInfo } from 'graphql';

}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type SGRootResolve = (args: {
export declare type SGRootResolve<T = any> = (args: {
[key: string]: any;
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => T;
export declare type SGTypeConfig = {

@@ -92,7 +92,7 @@ name: string;

};
export declare type SGOutputFieldTypeMetadata = SGFieldTypeMetadata & {
export declare type SGOutputFieldTypeMetadata<T = any> = SGFieldTypeMetadata & {
hookOptions?: SGHookOptionsMap;
graphql?: {
hidden?: boolean;
resolve?: SGFieldResolve;
resolve?: SGFieldResolve<T>;
dependentFields?: Array<string>;

@@ -176,5 +176,5 @@ input?: SGInputFieldConfigMap;

};
export declare type SGOutputFieldConfig = SGFieldTypeDefinition<SGOutputFieldTypeMetadata>;
export declare type SGOutputFieldConfigMap = {
[key: string]: SGOutputFieldConfig;
export declare type SGOutputFieldConfig<T = any> = SGFieldTypeDefinition<SGOutputFieldTypeMetadata<T>>;
export declare type SGOutputFieldConfigMap<T = any> = {
[key: string]: SGOutputFieldConfig<T>;
};

@@ -215,8 +215,8 @@ export declare type SGLinkedFieldConfig = {

};
export declare type SGQueryConfig = {
export declare type SGQueryConfig<T = any> = {
description?: string;
hookOptions?: SGHookOptionsMap;
input?: SGInputFieldConfigMap;
output: SGOutputFieldConfig;
resolve: SGRootResolve;
output: SGOutputFieldConfig<T>;
resolve: SGRootResolve<T>;
};

@@ -226,8 +226,8 @@ export declare type SGQueryConfigMap = {

};
export declare type SGMutationConfig = {
export declare type SGMutationConfig<T = any> = {
description?: string;
hookOptions?: SGHookOptionsMap;
input: SGInputFieldConfigMap;
output: SGOutputFieldConfigMap;
mutateAndGetPayload: SGRootResolve;
output: SGOutputFieldConfigMap<T>;
mutateAndGetPayload: SGRootResolve<T>;
};

@@ -234,0 +234,0 @@ export declare type SGMutationConfigMap = {

@@ -5,4 +5,4 @@ import { GraphQLFieldConfigMap } from 'graphql';

declare const toGraphQLFieldConfigMap: (name: string, postfix: string, fields: {
[id: string]: SGOutputFieldConfig;
[id: string]: SGOutputFieldConfig<any>;
}, context: Context) => GraphQLFieldConfigMap<any, any>;
export default toGraphQLFieldConfigMap;
{
"name": "simple-graphql",
"version": "5.0.1",
"version": "5.0.2",
"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

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