File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -132,14 +132,13 @@ public void LoadSchema(string schemaContent)
132132 var typeDef = typeDefinitions . FirstOrDefault ( t => t . Name == parsedType . Name ) ;
133133
134134 // Skip Query and Mutation - they define operations, not data to store
135- // But still register them with executor for introspection
135+ // DON'T register them from the schema file because GetQueryFields() dynamically
136+ // generates the correct Query type with Connection wrappers (e.g., CharacterConnection)
137+ // If we register the schema.graphql version (which has [Character]!), it overrides
138+ // the dynamic Connection types and breaks introspection
136139 if ( parsedType . Name == "Query" || parsedType . Name == "Mutation" )
137140 {
138- Console . WriteLine ( $ " ⏭️ Registering { parsedType . Name } (operation type, no table needed)") ;
139- if ( typeDef != null )
140- {
141- _executor . RegisterOperationType ( parsedType . Name , typeDef ) ;
142- }
141+ Console . WriteLine ( $ " ⏭️ Skipping { parsedType . Name } registration (will be dynamically generated with Connection types)") ;
143142 continue ;
144143 }
145144
You can’t perform that action at this time.
0 commit comments