DEV Community

Discussion on: 7 challenges for querying with GROQ

Collapse
 
billymoon profile image
Billy Moon

Spoiler alert...

For challenge 7 I was able to filter after the projection, but must use the column name of the projection, not the original data.

*[]{
  "name": name.english,
  "attack": base.Attack,
  "evaluation": select(
    base.Attack < 83 => "weak",
    base.Attack < 124 => "average",
    "strong"
  )
}|order(attack)