Project-Books / books-api

GraphQL Books API
https://project-books.github.io/#books-api
MIT License
35 stars 61 forks source link

Null covers in findByTitleIgnoreCase query #153

Closed knjk04 closed 2 years ago

knjk04 commented 2 years ago

Describe the bug The covers field is null when we run findByTitleIgnoreCase.

To Reproduce Steps to reproduce the behavior:

  1. Run the app
  2. Go to http://localhost:8082/graphiql
  3. Run the query shown below
  4. See error

Query:

query {
  findByTitleIgnoreCase(title: "Career of Evil") {
    title
    covers {
      smallUrl
      mediumUrl
      largeUrl
    }
  }
}

Expected behavior The URLs for the small, medium and large covers to show. Those fields themselves in the Cover object can be null. In the case of 'Career of Evil', we should have a non-null small URL.

Screenshots image

Questions to help us reproduce this bug

Are you using Docker and the instructions we set out in the README for running the app?

Yes