-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Relation is resolved as column in graphQL and Postgres #6419
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is the workaround in the description the recommended solution? I have run into this as well. Here's the GraphQL query we are trying to execute: roles(where: { users: { have: { id: { equalTo: $userId } } } }) {
edges {
node {
name
users {
edges {
node {
username
}
}
}
}
}
} And it results in this message from the server:
EDIT: Similar operating environment as the original post, using PostgreSQL running in AWS RDS and |
@cjbland would you be willed to help fixing this bug? |
Sure, I'll take a stab at it. |
Issue Description
I set up a Postgres instance with Parse and GraphQL. If I run a GraphQL query against my db that contains a relation, the relation is being resolved as a column instead of a relation causing a crash.
Steps to reproduce
Expected Results
I would expect to get an empty set of data since we have a clean Database.
Actual Outcome
Instead users is being resolved as a column and not a relation causing the following error;
Environment Setup
Server
Database
Logs/Trace
With Verbose on this is all I get;
Aditional
It does work if I create the user column myself through PGAdmin. Then it correctly resolves the relation instead of the column. So it's either inside the schema or the resolver.
The text was updated successfully, but these errors were encountered: