-
Notifications
You must be signed in to change notification settings - Fork 304
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
Invalid path reference articles.title; Associations can only be pointed to directly or via their id property #746
Comments
Inline code snippets don't really help here. Can you share the full sample application that we can use to replicate the problem? |
We generally don't expect both, and if both are implemented the order is not defined. |
Thanks for the quick response. Sure. here is a sample project to reproduce it. |
Thanks. I see.. I need the QuerydslPredicateExecutor present tho, as I will need the predicate builder functionality in the future. |
This is a Spring Data problem when attempting to project properties from an association. I filed spring-projects/spring-data-mongodb#4453 to address the issue. |
@mp911de I see.. thanks |
I am using
spring-graphql
along withspring-data-mongo
andquerydsl
and faced with the below issueHere is my set up :
here is my graphql schema:
👍 So while the following graphql seems to work fine:
❌ adding extra properties on the nested articles object does not:
throwing
org.springframework.data.mapping.MappingException: Invalid path reference articles.title; Associations can only be pointed to directly or via their id property
.Can you please shed some light as to what is the problem here ?
Also, I have noticed that when using
MongoRepository
along withQuerydslPredicateExecutor
thenQueryByExampleDataFetcher
takes precedence overQuerydslDataFetcher
. Is this expected behaviour?The text was updated successfully, but these errors were encountered: