Skip to content

Parse is filtering out Dates #13

@wilson-salonkee

Description

@wilson-salonkee

Hello, I'm having an issue with the parse function where it filters out fields that are of type date.

Example:
My Shape:

 const shape =    "{
  $group[requests](migrationRequestId)": {
      migrationRequestId: "migrationRequestId",
      status: "migrationRequestStatus",
      migrationDate: "migrationDate",
    },
}

Original JSON:

 {
  migrationRequestStatus: 'FAILED',
  migrationRequestId: 26,
  migrationDate: 2024-02-12T12:57:28.000Z,
}

After Parse:

{
  requests: [ { migrationRequestId: 26, status: 'FAILED' } ]
}

However if the Date is a string in the original JSON it works fine (eg: '2024-02-12')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions