Skip to content

Instantly share code, notes, and snippets.

@fevziomurtekin
Created August 18, 2020 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fevziomurtekin/067c10bb11f2f94536188644b0c4bae1 to your computer and use it in GitHub Desktop.
Save fevziomurtekin/067c10bb11f2f94536188644b0c4bae1 to your computer and use it in GitHub Desktop.
@Component
class Mutation (private val covidDao: CovidDao) : GraphQLMutationResolver{
fun createCovid(date:String,death:String,recovered:String,test:String)
= covidDao.newData(date,death,recovered,test)
fun deleteCovid(id:String)
= covidDao.deleteData(id)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment