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