@effect-gql/core 1.4.6 → 1.4.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-gql/core",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "Core GraphQL framework for Effect-TS - schema building, type mapping, and execution",
5
5
  "repository": {
6
6
  "url": "https://github.com/nrf110/effect-gql"
@@ -948,6 +948,13 @@ declare class GraphQLSchemaBuilder<R = never> implements Pipeable.Pipeable {
948
948
  getCacheHints(): CacheHintMap;
949
949
  /**
950
950
  * Build the GraphQL schema (no services required)
951
+ *
952
+ * Uses a two-phase approach:
953
+ * 1. Phase 1: Build enum and input registries first (these may be referenced by other types)
954
+ * 2. Phase 2: Build interface, object, and union types (which may reference inputs in args)
955
+ *
956
+ * This ensures that when object type fields with args are processed,
957
+ * all registered input types are already available in the inputRegistry.
951
958
  */
952
959
  buildSchema(): GraphQLSchema;
953
960
  private buildDirectiveRegistry;
@@ -948,6 +948,13 @@ declare class GraphQLSchemaBuilder<R = never> implements Pipeable.Pipeable {
948
948
  getCacheHints(): CacheHintMap;
949
949
  /**
950
950
  * Build the GraphQL schema (no services required)
951
+ *
952
+ * Uses a two-phase approach:
953
+ * 1. Phase 1: Build enum and input registries first (these may be referenced by other types)
954
+ * 2. Phase 2: Build interface, object, and union types (which may reference inputs in args)
955
+ *
956
+ * This ensures that when object type fields with args are processed,
957
+ * all registered input types are already available in the inputRegistry.
951
958
  */
952
959
  buildSchema(): GraphQLSchema;
953
960
  private buildDirectiveRegistry;
@@ -1,6 +1,6 @@
1
1
  import { Config, Layer, Cause, Effect, Stream, Runtime } from 'effect';
2
- import { j as ComplexityConfig, y as CacheControlConfig, F as FieldComplexityMap, w as CacheHintMap, G as GraphQLExtension, i as GraphQLSchemaBuilder } from '../schema-builder-DKvkzU_M.cjs';
3
- export { J as CacheControlConfigFromEnv, x as CachePolicy, z as CachePolicyAnalysisInfo, q as ComplexityAnalysisError, l as ComplexityAnalysisInfo, n as ComplexityCalculator, u as ComplexityConfigFromEnv, m as ComplexityExceededInfo, p as ComplexityLimitExceededError, k as ComplexityResult, o as FieldComplexity, t as combineCalculators, A as computeCachePolicy, B as computeCachePolicyFromQuery, r as defaultComplexityCalculator, s as depthOnlyCalculator, H as toCacheControlHeader, v as validateComplexity } from '../schema-builder-DKvkzU_M.cjs';
2
+ import { j as ComplexityConfig, y as CacheControlConfig, F as FieldComplexityMap, w as CacheHintMap, G as GraphQLExtension, i as GraphQLSchemaBuilder } from '../schema-builder-CAij36fD.cjs';
3
+ export { J as CacheControlConfigFromEnv, x as CachePolicy, z as CachePolicyAnalysisInfo, q as ComplexityAnalysisError, l as ComplexityAnalysisInfo, n as ComplexityCalculator, u as ComplexityConfigFromEnv, m as ComplexityExceededInfo, p as ComplexityLimitExceededError, k as ComplexityResult, o as FieldComplexity, t as combineCalculators, A as computeCachePolicy, B as computeCachePolicyFromQuery, r as defaultComplexityCalculator, s as depthOnlyCalculator, H as toCacheControlHeader, v as validateComplexity } from '../schema-builder-CAij36fD.cjs';
4
4
  import { HttpServerResponse, HttpRouter } from '@effect/platform';
5
5
  import { GraphQLSchema, ExecutionResult } from 'graphql';
6
6
  import * as effect_Cause from 'effect/Cause';
package/server/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Config, Layer, Cause, Effect, Stream, Runtime } from 'effect';
2
- import { j as ComplexityConfig, y as CacheControlConfig, F as FieldComplexityMap, w as CacheHintMap, G as GraphQLExtension, i as GraphQLSchemaBuilder } from '../schema-builder-DKvkzU_M.js';
3
- export { J as CacheControlConfigFromEnv, x as CachePolicy, z as CachePolicyAnalysisInfo, q as ComplexityAnalysisError, l as ComplexityAnalysisInfo, n as ComplexityCalculator, u as ComplexityConfigFromEnv, m as ComplexityExceededInfo, p as ComplexityLimitExceededError, k as ComplexityResult, o as FieldComplexity, t as combineCalculators, A as computeCachePolicy, B as computeCachePolicyFromQuery, r as defaultComplexityCalculator, s as depthOnlyCalculator, H as toCacheControlHeader, v as validateComplexity } from '../schema-builder-DKvkzU_M.js';
2
+ import { j as ComplexityConfig, y as CacheControlConfig, F as FieldComplexityMap, w as CacheHintMap, G as GraphQLExtension, i as GraphQLSchemaBuilder } from '../schema-builder-CAij36fD.js';
3
+ export { J as CacheControlConfigFromEnv, x as CachePolicy, z as CachePolicyAnalysisInfo, q as ComplexityAnalysisError, l as ComplexityAnalysisInfo, n as ComplexityCalculator, u as ComplexityConfigFromEnv, m as ComplexityExceededInfo, p as ComplexityLimitExceededError, k as ComplexityResult, o as FieldComplexity, t as combineCalculators, A as computeCachePolicy, B as computeCachePolicyFromQuery, r as defaultComplexityCalculator, s as depthOnlyCalculator, H as toCacheControlHeader, v as validateComplexity } from '../schema-builder-CAij36fD.js';
4
4
  import { HttpServerResponse, HttpRouter } from '@effect/platform';
5
5
  import { GraphQLSchema, ExecutionResult } from 'graphql';
6
6
  import * as effect_Cause from 'effect/Cause';