Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by JSON field returns "Unknown field" error #2840

Closed
islamaliev opened this issue Jul 16, 2024 · 0 comments · Fixed by #2841
Closed

Filtering by JSON field returns "Unknown field" error #2840

islamaliev opened this issue Jul 16, 2024 · 0 comments · Fixed by #2841
Assignees
Labels
area/query Related to the query component
Milestone

Comments

@islamaliev
Copy link
Contributor

Schema looks like this

type PlayerQuizzes {
    playerId: String
    data: JSON
    createdAt: DateTime 
    updatedAt: DateTime
}

Query look like this

{
  PlayerQuizzes(filter: {
    data: { _like: "%tweetId%" }  
  }) {
    id: _docID
  }
}

And a result of query

{
  "data": null,
  "errors": [
    "Argument \"filter\" has invalid value {data: {_like: \"tweetId\"}}.\nIn field \"data\": Unknown field."
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant