CountryController

@Controller
class CountryController(@Autowired countryService: CountryService)

Constructors

Link copied to clipboard
fun CountryController(@Autowired countryService: CountryService)

Functions

Link copied to clipboard
@SchemaMapping(field = "countries", typeName = "Query")
fun countries(@Argument limit: Int? = null, @Argument offset: Int? = null): List<CountryDto>?
Link copied to clipboard
@SchemaMapping(field = "country", typeName = "Query")
fun country(@Argument id: UUID? = null, @Argument alpha2: String? = null, @Argument alpha3: String? = null): CountryDto?
Link copied to clipboard
@SchemaMapping(field = "createCountry", typeName = "Mutation")
fun createCountry(@Argument country: CountryInputDto): CountryDto
Link copied to clipboard
@SchemaMapping(field = "deleteCountry", typeName = "Mutation")
fun deleteCountry(@Argument id: UUID): Boolean
Link copied to clipboard
@SchemaMapping(field = "updateCountry", typeName = "Mutation")
fun updateCountry(@Argument id: UUID, @Argument country: CountryInputDto): CountryDto