tirumaraiselvan / graphql-engine

Blazing fast, instant realtime GraphQL APIs on Postgres with fine grained access control
https://hasura.io
Apache License 2.0
2 stars 0 forks source link

Order is not preserved when multiple remote fields are defined #59

Open nizar-m opened 5 years ago

nizar-m commented 5 years ago

This query

    {
      profiles {
        id
        user_output_1: usersNestedArgs(where: {provider: {_eq: "provider1"}}) {
          id
          provider
        }
        user_output_2: usersNestedArgs(where: {_or: [{id: {_eq: 1}}, {provider: {_eq: "provider2"}}]}) {
          id
          provider
        }
        user_output_3: usersNestedArgs(where: {id: {_neq: 1}}) {
          id
          provider
        }
      }
    }

gave the following output

  data:
    profiles:
    - id: 1
      user_output_1: &user1
      - id: 1
        provider: provider1
      user_output_3: []
      user_output_2: *user1
    - id: 2
      user_output_1: []
      user_output_3: &user2
      - id: 2
        provider: provider2
      user_output_2: *user2
    - id: 3
      user_output_1: &user3
      - id: 3
        provider: provider1
      user_output_3: *user3
      user_output_2: []