Skip to content

tranformWrite follow-ups #1784

@lolopinto

Description

@lolopinto
  • createdAt shouldn't be changed in a create -> edit
    // expect(authCode2.createdAt).toBe(authCode.createdAt);
  • maybe type Data so it matches input? is that a breaking change?
  • definitely throw if data is a Map. that's definitely not what we want
  • validate that any key returned in data is an inputKey or storageKey of schemaFields and throw if an unexpected key is found
    • it wasn't working for userID in auth code example so checked for both inputKey and storageKey of fieldInfo but that means we could be sending extra and ignoring it now

follow-up to #1765

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