@effect-gql/core 1.4.9 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder/index.cjs +3 -2
- package/builder/index.cjs.map +1 -1
- package/builder/index.js +3 -2
- package/builder/index.js.map +1 -1
- package/index.cjs +3 -2
- package/index.cjs.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -84,7 +84,7 @@ function handleTupleTypeAST(ast, convertFn) {
|
|
|
84
84
|
}
|
|
85
85
|
return void 0;
|
|
86
86
|
}
|
|
87
|
-
function buildFieldsFromPropertySignatures(propertySignatures, convertFn
|
|
87
|
+
function buildFieldsFromPropertySignatures(propertySignatures, convertFn) {
|
|
88
88
|
const fields = {};
|
|
89
89
|
for (const field2 of propertySignatures) {
|
|
90
90
|
const fieldName = String(field2.name);
|
|
@@ -193,7 +193,8 @@ var toGraphQLInputType = (schema) => {
|
|
|
193
193
|
if (ast._tag === "TypeLiteral") {
|
|
194
194
|
const fields = buildFieldsFromPropertySignatures(
|
|
195
195
|
ast.propertySignatures,
|
|
196
|
-
toGraphQLInputType
|
|
196
|
+
toGraphQLInputType
|
|
197
|
+
);
|
|
197
198
|
const typeName = schema.annotations?.identifier || `Input_${Math.random().toString(36).slice(2, 11)}`;
|
|
198
199
|
return new graphql.GraphQLInputObjectType({
|
|
199
200
|
name: typeName,
|