Skip to content

Instantly share code, notes, and snippets.

@fevziomurtekin
Last active August 19, 2020 09:04
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/4006f578dbfec180e53f2a75f14bdb14 to your computer and use it in GitHub Desktop.
Save fevziomurtekin/4006f578dbfec180e53f2a75f14bdb14 to your computer and use it in GitHub Desktop.
package com.fevziomurtekin.sample.graphql.query
import com.coxautodev.graphql.tools.GraphQLQueryResolver
import com.fevziomurtekin.sample.dao.CovidDao
import org.springframework.stereotype.Component
@Component
class CovidQuery(private val covidDao: CovidDao) : GraphQLQueryResolver {
fun allContent() = covidDao.findAll()
fun allContentByDate(date:String) = covidDao.getContentByDate(date)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment