Skip to content

Querying data not working as expected #297

@mario-maistra

Description

@mario-maistra

While trying out querying data on the playground, I could not get the excepted result. For example, I chose Course model on the playground and tried to query by book ID, like this:
{ id, name, code, books(id:3) { id, title, author, genre { id, title, description } } }

It returns all courses. But if I try to query by course id, like this:
(id:1) { id, name, code, books { id, title, author, genre { id, title, description } } }

It works as excepted. Tried it out on some of the offered models, but I could not get consistent result...sometimes it works as excepted, and in some cases (like this one) it does not. How does this exactly work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions