ExprField creates a field entry for a create struct Expr.
(id int64, field string, value *exprpb.Expr)
| 344 | |
| 345 | // ExprField creates a field entry for a create struct Expr. |
| 346 | func ExprField(id int64, field string, |
| 347 | value *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry { |
| 348 | return &exprpb.Expr_CreateStruct_Entry{Id: id, |
| 349 | KeyKind: &exprpb.Expr_CreateStruct_Entry_FieldKey{FieldKey: field}, |
| 350 | Value: value} |
| 351 | } |
| 352 | |
| 353 | // ExprComprehension returns a comprehension Expr. |
| 354 | func ExprComprehension(id int64, |