@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.cjs
CHANGED
|
@@ -79,7 +79,7 @@ function handleTupleTypeAST(ast, convertFn) {
|
|
|
79
79
|
}
|
|
80
80
|
return void 0;
|
|
81
81
|
}
|
|
82
|
-
function buildFieldsFromPropertySignatures(propertySignatures, convertFn
|
|
82
|
+
function buildFieldsFromPropertySignatures(propertySignatures, convertFn) {
|
|
83
83
|
const fields = {};
|
|
84
84
|
for (const field2 of propertySignatures) {
|
|
85
85
|
const fieldName = String(field2.name);
|
|
@@ -188,7 +188,8 @@ var toGraphQLInputType = (schema) => {
|
|
|
188
188
|
if (ast._tag === "TypeLiteral") {
|
|
189
189
|
const fields = buildFieldsFromPropertySignatures(
|
|
190
190
|
ast.propertySignatures,
|
|
191
|
-
toGraphQLInputType
|
|
191
|
+
toGraphQLInputType
|
|
192
|
+
);
|
|
192
193
|
const typeName = schema.annotations?.identifier || `Input_${Math.random().toString(36).slice(2, 11)}`;
|
|
193
194
|
return new graphql.GraphQLInputObjectType({
|
|
194
195
|
name: typeName,
|