hasura / hasura/graphql-engine

EventTrigger - Payload Transform

Open
#8,644 0 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.8.1-cloud.1
CLI Version (for CLI related issue):

### Environment

Cloud

### What is the expected behaviour?

I want to access {{$body.event.data.old?.content}}

Screenshot 2022-06-29 at 13 40 38

But on insert event, there is an error on processed events

Screenshot 2022-06-29 at 13 44 36

I think it's normal because {{$body.event.data.old.content}} not exists on insert. But i want to use this syntax Kriti with '?' in order to prevent the error field access.

Thanks !

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Begin with the EventTrigger payload-transform path and the Kriti expression shown in the issue; done means an insert event can evaluate the missing old.content access without producing a processed-event error.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.