@@ -22,7 +22,7 @@ func (b Banned) MarshalGQL(w io.Writer) {
2222 }
2323}
2424
25- func (b * Banned ) UnmarshalGQL (v interface {} ) error {
25+ func (b * Banned ) UnmarshalGQL (v any ) error {
2626 switch v := v .(type ) {
2727 case string :
2828 * b = strings .ToLower (v ) == "true"
@@ -53,7 +53,7 @@ type Point struct {
5353 Y int
5454}
5555
56- func (p * Point ) UnmarshalGQL (v interface {} ) error {
56+ func (p * Point ) UnmarshalGQL (v any ) error {
5757 pointStr , ok := v .(string )
5858 if ! ok {
5959 return fmt .Errorf ("points must be strings" )
@@ -90,7 +90,7 @@ func MarshalTimestamp(t time.Time) graphql.Marshaler {
9090
9191// Unmarshal{Typename} is only required if the scalar appears as an input. The raw values have already been decoded
9292// from json into int/float64/bool/nil/map[string]interface/[]interface
93- func UnmarshalTimestamp (v interface {} ) (time.Time , error ) {
93+ func UnmarshalTimestamp (v any ) (time.Time , error ) {
9494 if tmpStr , ok := v .(int64 ); ok {
9595 return time .Unix (tmpStr , 0 ), nil
9696 }
@@ -105,7 +105,7 @@ func MarshalID(id external.ObjectID) graphql.Marshaler {
105105}
106106
107107// And the same for the unmarshaler
108- func UnmarshalID (v interface {} ) (external.ObjectID , error ) {
108+ func UnmarshalID (v any ) (external.ObjectID , error ) {
109109 str , ok := v .(string )
110110 if ! ok {
111111 return 0 , fmt .Errorf ("ids must be strings" )
@@ -163,7 +163,7 @@ func (e Tier) String() string {
163163 }
164164}
165165
166- func (e * Tier ) UnmarshalGQL (v interface {} ) error {
166+ func (e * Tier ) UnmarshalGQL (v any ) error {
167167 str , ok := v .(string )
168168 if ! ok {
169169 return fmt .Errorf ("enums must be strings" )
@@ -186,7 +186,7 @@ func MarshalPreferences(p *Prefs) graphql.Marshaler {
186186 return graphql .MarshalBoolean (p .DarkMode )
187187}
188188
189- func UnmarshalPreferences (v interface {} ) (* Prefs , error ) {
189+ func UnmarshalPreferences (v any ) (* Prefs , error ) {
190190 tmp , err := graphql .UnmarshalBoolean (v )
191191 if err != nil {
192192 return nil , err
0 commit comments