cayleygraph/cayley · error

unsupported value type: %T

Error message

unsupported value type: %T

What it means

Error "unsupported value type: %T" thrown in cayleygraph/cayley.

Source

Thrown at query/graphql/graphql.go:596

		return []quad.Value{quad.Int(pv)}, nil
	case *ast.FloatValue:
		pv, _ := strconv.ParseFloat(v.Value, 64)
		return []quad.Value{quad.Float(pv)}, nil
	case *ast.BooleanValue:
		return []quad.Value{quad.Bool(v.Value)}, nil
	case *ast.ListValue:
		for _, sv := range v.Values {
			cv, err := convValue(sv)
			if err != nil {
				return nil, err
			} else if len(cv) != 1 {
				return nil, fmt.Errorf("unexpected value array in list: %v (%d)", cv, len(cv))
			}
			out = append(out, cv[0])
		}
		return
	default:
		return nil, fmt.Errorf("unsupported value type: %T", v)
	}
}

View on GitHub (pinned to 81dcd7d73e)

When it happens

Trigger: Thrown at query/graphql/graphql.go:596 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of cayleygraph/cayley@81dcd7d73e (2026-09-06). Data as JSON: /api/errors/f5cd497f706998e2. Report an issue: GitHub.