graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Node order

Open tvaughan73 opened this issue 1 year ago • 1 comments

how can I achieve this:

{
    client(id: "141") {
        email
        user {
            id
            name
        }
        company_name
    }
}

Everything I have tried keeps putting user at the end. As in

{
    client(id: "141") {
        email
        company_name
        user {
            id
            name
        }
    }
}

tvaughan73 avatar Apr 22 '24 20:04 tvaughan73

Actually, the order of fields in GraphQL queries should not affect anything, so it's not significant to keep them ordered.

And even if we try to implement keeping the order, it will overcomplicate the interface, because we should provide functions to insert new fields at the start, end, in between, etc.

So, I think, this is not a feature that we should support.

MurzNN avatar Aug 01 '24 11:08 MurzNN