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

All association calls missing from MSSQL call #16

Closed
ssomnoremac opened this issue Jun 19, 2017 · 1 comment
Closed

All association calls missing from MSSQL call #16

ssomnoremac opened this issue Jun 19, 2017 · 1 comment

Comments

@ssomnoremac
Copy link

ssomnoremac commented Jun 19, 2017

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
Copy link
Author

ssomnoremac commented Jun 20, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant