Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse is filtering out Dates #13

Open
wilson-salonkee opened this issue Mar 1, 2024 · 0 comments
Open

Parse is filtering out Dates #13

wilson-salonkee opened this issue Mar 1, 2024 · 0 comments

Comments

@wilson-salonkee
Copy link

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant