File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/main/kotlin/com/coxautodev/graphql/tools Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class SchemaParserBuilder constructor(private val dictionary: SchemaParserDictio
167167
168168 private fun appendDynamicDefinitions (baseDefinitions : List <Definition <* >>): List <Definition <* >> {
169169 val definitions = baseDefinitions.toMutableList()
170- options.typeDefinitionFactories.forEach { definitions.addAll(it.create(baseDefinitions )) }
170+ options.typeDefinitionFactories.forEach { definitions.addAll(it.create(definitions )) }
171171 return definitions.toList()
172172 }
173173
Original file line number Diff line number Diff line change 66
77public interface TypeDefinitionFactory {
88
9+ /**
10+ * Called after parsing the SDL for creating any additional type definitions.
11+ * All existing definitions are passed in. Return only the newly created definitions.
12+ *
13+ * @param existing all existing definitions
14+ * @return any new definitions that should be added
15+ */
916 List <Definition <?>> create (final List <Definition <?>> existing );
1017
1118}
You can’t perform that action at this time.
0 commit comments