-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fragments not populated #10
Conversation
@mattleff This now conflicts with the code from your other PR. This is also an excellent addition and I will merge this as soon as the conflicts are resolved. Could you resolve them? EDIT: I only now noticed that you had disabled the select filtering. That obviously isn't an option. I can try to find a workaround for that but it will take weeks before I have time. So unless you want to fix this so that select filtering works, I cannot merge this for a while. |
Did you have any thoughts on #9 regarding virtual attributes? I like the idea of select filtering but in practice that means either:
Would you be open to a method that could toggle select filtering (defaulting on), maybe something like: const graphQlSchema = graphQlBuilder()
.model(Movie)
.model(Person)
.model(Review)
.selectFiltering(false)
.build(); |
@mattleff You need to list virtual attributes in
EDIT: I understood what you meant 5 seconds after posting this: If a virtual attribute uses columns that you didn't explicitly select, it won't work. And only other option is to list "dependencies" for virtual attributes and I don't like that either. An option like |
Can't this feature be implemented without the need for |
…ated # Conflicts: # lib/SchemaBuilder.js # tests/integration.js
Looks good! Thank you! |
GraphQL queries using fragments are not being resolved correctly. For example:
This pull doesn't work unless select filtering is disabled (see #9). An alternative would be some code to similar to this which I've disabled because I need virtual attributes.