[#567] resolve the direct user profile fields from the profiles table and not from the static auth model

This commit is contained in:
Gani Georgiev
2022-09-20 11:20:30 +03:00
parent 8be8f3f3cb
commit 7006e1f5d7
12 changed files with 19 additions and 17 deletions

View File

@@ -123,7 +123,7 @@ func (r *RecordFieldResolver) Resolve(fieldName string) (resultName string, plac
}
// not a profile relational field
if len(props) <= 4 || !strings.HasPrefix(fieldName, "@request.user.profile.") {
if !strings.HasPrefix(fieldName, "@request.user.profile.") {
return r.resolveStaticRequestField(props[1:]...)
}