Skip to content

Better error handling on typo'd tables in relationships. #9

@brianloveswords

Description

@brianloveswords

typo'd tables in relationships.

For example, if I have something like this:

    program: {
      type: 'hasOne',
      local: 'programId',
      foreign: { table: 'programss', key: 'id' },
      optional: true,
    },

Notice the double "s" where there should only be one in "programs" – the error that comes back is BANANAS and doesn't point to the issue at all.

empty/undefined query items

If you do table.get({ id: null }) things go crazy.

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