dapperAuteur/aweful-blog

blog-reusing return types and the trouble it creates

Opened this issue · 0 comments

connected to this issue: https://app.gitkraken.com/glo/view/card/7ecbfaac8a574f0380822f1a9dfa7af3
findWord and findFourLetterWords both returned the type below:

type ReturnFourLetterWordList {
    fourLetterWords: [FourLetterWord]
    cursorFourLetterWords: String
    countFourLetterWords: Int
    # list: [FourLetterWord] to be used with the interface
  }

now findFourLetterWords returns the type below:

type ReturnFourLetterWords {
    fourLetterWords: [FourLetterWord]
    cursor: String
    count: Int
    # list: [FourLetterWord] to be used with the interface
  }