SpringBoot2.7.x Graphql Query did not work

SpringBoot2.7.x Graphql Query did not work


0

first sorry im not good at english

that is my setting, and i call query, SpringBoot is work, query is work
but return nothing, not null, just return nothing in postman

how can i resolve this… 🙁 programming is so hard

@Controller
@Transactional
class MemberGraphController (

    private val userRepository: UserRepository,
    private val passwordEncoder: PasswordEncoder

        ) {
@QueryMapping
    fun findAllUsers(): List<User> = userRepository.findAll()
}

type User {
    oid: ID!,
    userId: String!,
    name: String!,
    email: String!
}

type Query {
    findAllUsers: [User],
    findByUserId(userId: String!): User
}
  graphql:
    graphiql:
      enabled: true
    schema:
      printer:
        enabled: true
      locations: classpath:graphql/**/
      file-extensions: .graphqls, .ggls
    implementation("org.springframework.boot:spring-boot-starter-graphql")
2023-11-18 20:49:12.749  INFO 544 --- [nio-8080-exec-2] p6spy                                    : 

New contributor

Anna is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 7 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *