The parseConnectionDirective method took a MutableList when it wasn't necessary. Switched to passing in the TypeDefinitionRegistry itself to make the logic simpler.
Use builder for FieldDefinition.
Move repeated Strings to companion object (connection and PageInfo).