@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.js
CHANGED
|
@@ -59,7 +59,7 @@ function handleTupleTypeAST(ast, convertFn) {
|
|
|
59
59
|
}
|
|
60
60
|
return void 0;
|
|
61
61
|
}
|
|
62
|
-
function buildFieldsFromPropertySignatures(propertySignatures, convertFn
|
|
62
|
+
function buildFieldsFromPropertySignatures(propertySignatures, convertFn) {
|
|
63
63
|
const fields = {};
|
|
64
64
|
for (const field2 of propertySignatures) {
|
|
65
65
|
const fieldName = String(field2.name);
|
|
@@ -168,7 +168,8 @@ var toGraphQLInputType = (schema) => {
|
|
|
168
168
|
if (ast._tag === "TypeLiteral") {
|
|
169
169
|
const fields = buildFieldsFromPropertySignatures(
|
|
170
170
|
ast.propertySignatures,
|
|
171
|
-
toGraphQLInputType
|
|
171
|
+
toGraphQLInputType
|
|
172
|
+
);
|
|
172
173
|
const typeName = schema.annotations?.identifier || `Input_${Math.random().toString(36).slice(2, 11)}`;
|
|
173
174
|
return new GraphQLInputObjectType({
|
|
174
175
|
name: typeName,
|