Skip to content

How can I get the String from the query ? #1371

@rullyalves

Description

@rullyalves

Hi, first I would like to thank you for the repository

I have a code similar to this, I'm using spring boot with kotlin and the graphql kotlin spring server library:

@Component
class ProfileQuery(private val profileDao: ProfileDao) : Query {
   fun profile(env: DataFetchingEnvironment): List<Profile> {
       return profileDao.getAll()
   }
}

I would like to know how I can retrieve the String value from the graphql query, for example:

query {
profile {
id
name
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions