@soda-gql/core 0.14.0 → 0.14.1

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/dist/index.cjs CHANGED
@@ -2234,8 +2234,7 @@ const createFieldFactoriesInner = (schema, typeName) => {
2234
2234
  }
2235
2235
  const fieldDef = typeDef.fields[fieldName];
2236
2236
  if (!fieldDef) throw new Error(`Field "${fieldName}" is not defined on type "${typeName}"`);
2237
- const typeSpecifier = typeof fieldDef === "string" ? fieldDef : fieldDef.spec;
2238
- const parsedType = parseOutputField(typeSpecifier);
2237
+ const parsedType = parseOutputField(fieldDef);
2239
2238
  const wrap = (value) => require_schema_builder.wrapByKey(extras?.alias ?? fieldName, value);
2240
2239
  const directives = extras?.directives ?? [];
2241
2240
  if (parsedType.kind === "object") {
@@ -2248,7 +2247,7 @@ const createFieldFactoriesInner = (schema, typeName) => {
2248
2247
  return wrap({
2249
2248
  parent: typeName,
2250
2249
  field: fieldName,
2251
- type: typeSpecifier,
2250
+ type: fieldDef,
2252
2251
  args: fieldArgs ?? {},
2253
2252
  directives,
2254
2253
  object: nestedFields,
@@ -2280,7 +2279,7 @@ const createFieldFactoriesInner = (schema, typeName) => {
2280
2279
  return wrap({
2281
2280
  parent: typeName,
2282
2281
  field: fieldName,
2283
- type: typeSpecifier,
2282
+ type: fieldDef,
2284
2283
  args: fieldArgs ?? {},
2285
2284
  directives,
2286
2285
  object: null,
@@ -2296,7 +2295,7 @@ const createFieldFactoriesInner = (schema, typeName) => {
2296
2295
  const factoryReturn = (() => wrap({
2297
2296
  parent: typeName,
2298
2297
  field: fieldName,
2299
- type: typeSpecifier,
2298
+ type: fieldDef,
2300
2299
  args: fieldArgs ?? {},
2301
2300
  directives,
2302
2301
  object: null,