GraphQL: Add missing fields (#20646)
Went through the model and added all missing fields. Except user.Password/MfaSecret/AuthData and session.TeamMembers. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2aaf4cf0fb
Коммит
ae482e6214
@@ -186,6 +186,20 @@ func (si StringInterface) Value() (driver.Value, error) {
|
||||
return string(j), err
|
||||
}
|
||||
|
||||
func (StringInterface) ImplementsGraphQLType(name string) bool {
|
||||
return name == "StringInterface"
|
||||
}
|
||||
|
||||
func (si *StringInterface) UnmarshalGraphQL(input any) error {
|
||||
json, ok := input.(map[string]any)
|
||||
if !ok {
|
||||
return errors.New("wrong type")
|
||||
}
|
||||
|
||||
*si = json
|
||||
return nil
|
||||
}
|
||||
|
||||
var translateFunc i18n.TranslateFunc
|
||||
var translateFuncOnce sync.Once
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user