GORM Playground Link
https://github.com/go-gorm/playground/pull/1
Description
when i use gin, gorm preload function is ok, but gqlgen gorm preload : error : teacher_scores: unsupported relations for schema TeacherInfo
versions gqlgen version? v0.13.0 go version? 1.16.3 dep or go modules? go modules
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: RajeshPaul38
I am facing same issue. It is a genuine issue. Someone Pls help.
Comment From: a631807682
If you encounter a bug in GORM, please report with the Playground Pull Request's link https://github.com/go-gorm/playground
Comment From: a631807682
use schema filed name, don't use table name in Preload
Comment From: RajeshPaul38
Gorm official documentation says to use the association name itself right? Here's the link I'm refering to: https://gorm.io/docs/preload.html
Comment From: a631807682
Use the associated name, which in this issues should be used TeacherScores
Comment From: RajeshPaul38
I indeed used the association name itself. Still I am getting the same error.
Comment From: a631807682
please report with the Playground Pull Request's link
Comment From: mnvx
I hope the following answer will help: https://stackoverflow.com/a/78532448/1920758