absinthe-graphql / absinthe_ecto

DEPRECATED: Use dataloader
MIT License
130 stars 36 forks source link

All association calls missing from MSSQL call #16

Closed ssomnoremac closed 7 years ago

ssomnoremac commented 7 years ago

SQL call ends up being just the one for the root query type when doing the following:

query{
  profiles{
    firstName
    profileImages{
      url
    }
    logins{
      cellNumber
    }
  }
}

[debug] QUERY OK source="Profile" db=152.8ms decode=0.2ms
SELECT P0."sm_id", P0."first_name" FROM "Profile" AS P0 []
[info] Sent 200 in 156ms

The graphiql query is then of course missing the lists

...
     {
        "profileImages": null,
        "logins": null,
        "firstName": "Thomas"
      },
      {
        "profileImages": null,
        "logins": null,
        "firstName": "Jonathan"
      },
...

graphql types are set up just like examples and ecto models as well Could there be an incompatibility with the mssql-ecto driver ?

ssomnoremac commented 7 years ago

Well, somehow after not working for a day it just up and worked. Would have expected some errors for why a has_many call wouldn't actually produce sql call. Just being careful about plural fields may have been it.