@raynode/graphql-connector
Advanced tools
Comparing version 0.6.1 to 0.7.1
@@ -69,3 +69,3 @@ "use strict"; | ||
}, | ||
type: model.types.type, | ||
type: graphql_1.GraphQLNonNull(graphql_1.GraphQLList(graphql_1.GraphQLNonNull(model.types.type))), | ||
}; | ||
@@ -81,6 +81,5 @@ mutationFields[names.fields.delete] = { | ||
where: filterParser('where', where), | ||
order: filterParser('create', order), | ||
}, context, info); | ||
}, | ||
type: new graphql_1.GraphQLNonNull(model.types.list), | ||
type: graphql_1.GraphQLNonNull(graphql_1.GraphQLList(graphql_1.GraphQLNonNull(model.types.type))), | ||
}; | ||
@@ -87,0 +86,0 @@ return mutationFields; |
@@ -0,3 +1,3 @@ | ||
import { GraphQLSchema } from 'graphql'; | ||
import { BaseSchema } from './base-schema-generator'; | ||
import { GraphQLSchema } from 'graphql'; | ||
export declare type RecordOf<Keys, Type> = { | ||
@@ -4,0 +4,0 @@ [key in keyof Keys]: Type; |
{ | ||
"name": "@raynode/graphql-connector", | ||
"version": "0.6.1", | ||
"version": "0.7.1", | ||
"description": "", | ||
@@ -27,4 +27,4 @@ "main": "lib/index.js", | ||
"src/**/*.{ts,tsx}": [ | ||
"prettier --write", | ||
"tslint --fix", | ||
"prettier --write", | ||
"git add" | ||
@@ -62,3 +62,3 @@ ] | ||
}, | ||
"gitHead": "eb096645c980902fcb7b89e73b433c72a14d6f18" | ||
"gitHead": "e8074965bbf0160a662621d9b524a4b64bf95d80" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { GraphQLNonNull } from 'graphql' | ||
import { GraphQLList, GraphQLNonNull } from 'graphql' | ||
import { GeneratorConfiguration } from './configuration' | ||
@@ -96,3 +96,3 @@ import { applyFilterParser } from './filter-field-generator' | ||
), | ||
type: model.types.type, | ||
type: GraphQLNonNull(GraphQLList(GraphQLNonNull(model.types.type))), | ||
} | ||
@@ -110,3 +110,2 @@ | ||
where: filterParser('where', where), | ||
order: filterParser('create', order), | ||
}, | ||
@@ -116,3 +115,3 @@ context, | ||
), | ||
type: new GraphQLNonNull(model.types.list), | ||
type: GraphQLNonNull(GraphQLList(GraphQLNonNull(model.types.type))), | ||
} | ||
@@ -119,0 +118,0 @@ |
@@ -78,3 +78,2 @@ import { | ||
} | ||
console.log(func, value) | ||
// throw new Error(func + ' not defined') | ||
@@ -177,3 +176,2 @@ return valid | ||
findMany: async (_, { where, order }) => { | ||
console.log(where, order) | ||
return { | ||
@@ -355,3 +353,2 @@ nodes: await model.findMany(buildFilterFn(where)), | ||
}`) | ||
console.log(data.members.nodes) | ||
expect(data).toMatchSnapshot() | ||
@@ -368,3 +365,2 @@ }) | ||
}`) | ||
console.log(data.members.nodes) | ||
expect(data).toMatchSnapshot() | ||
@@ -381,3 +377,2 @@ }) | ||
}`) | ||
console.log(data) | ||
expect(data).toMatchSnapshot() | ||
@@ -384,0 +379,0 @@ }) |
@@ -1,2 +0,1 @@ | ||
import { BaseSchema } from '../base-schema-generator' | ||
import { | ||
@@ -16,2 +15,3 @@ GraphQLBoolean, | ||
} from 'graphql' | ||
import { BaseSchema } from '../base-schema-generator' | ||
import { TypeMapper } from '../type-converter' | ||
@@ -18,0 +18,0 @@ import { createSchema } from '../utils' |
@@ -1,4 +0,4 @@ | ||
import { BaseSchema } from './base-schema-generator' | ||
import { GraphQLObjectType, GraphQLSchema, printSchema } from 'graphql' | ||
import { mapValues } from 'lodash' | ||
import { BaseSchema } from './base-schema-generator' | ||
@@ -5,0 +5,0 @@ export type RecordOf<Keys, Type> = { [key in keyof Keys]: Type } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133519
0
2276