这是indexloc提供的服务,不要输入任何密码
Skip to content

geometry/geography values in event trigger request payload is not geojson #2368

@rakeshkky

Description

@rakeshkky

Reproduction:-

Create the following table

      CREATE TABLE landmark (
        id SERIAL PRIMARY KEY,
        location GEOGRAPHY(Point)
      );
  • Define an event trigger on landmark table for INSERT.
  • Make an insert mutation into landmark table

Request payload for the event trigger

{
    "event": {
        "session_variables": {
            "x-hasura-role": "admin"
        },
        "op": "INSERT",
        "data": {
            "old": null,
            "new": {
                "location": "0101000020E61000000000000000805BC00000000000003E40",
                "id": 1
            }
        }
    },
    "created_at": "2019-06-11T10:40:34.833723Z",
    "id": "573ead9b-ffca-4b10-bdcd-c289ea1dbac8",
    "delivery_info": {
        "max_retries": 0,
        "current_retry": 0
    },
    "trigger": {
        "name": "geo_test"
    },
    "table": {
        "schema": "public",
        "name": "landmark"
    }
}

location value is not geojson

Metadata

Metadata

Assignees

Labels

c/serverRelated to serverk/bugSomething isn't workingp/highcandidate for being included in the upcoming sprint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions