PostCodeController

@Controller
class PostCodeController(@Autowired postCodeService: PostCodeService)

Constructors

Link copied to clipboard
fun PostCodeController(@Autowired postCodeService: PostCodeService)

Functions

Link copied to clipboard
@SchemaMapping(field = "createPostCode", typeName = "Mutation")
fun createPostCode(@Argument postCode: PostCodeInputDto): PostCodeDto
Link copied to clipboard
@SchemaMapping(field = "deletePostCode", typeName = "Mutation")
fun deletePostCode(@Argument id: UUID): Boolean
Link copied to clipboard
@SchemaMapping(field = "postCode", typeName = "Query")
fun postCode(@Argument id: UUID): PostCodeDto?
Link copied to clipboard
@SchemaMapping(field = "postCodes", typeName = "Query")
fun postCodes(@Argument limit: Int? = null, @Argument offset: Int? = null): List<PostCodeDto>?
Link copied to clipboard
@SchemaMapping(field = "updatePostCode", typeName = "Mutation")
fun updatePostCode(@Argument id: UUID, @Argument postCode: PostCodeInputDto): PostCodeDto