Skip to content

Add a note about 'NOT NULL' JSONB 'null' #134

Open

Description

@benjie
create table a (
  b jsonb not null default 'null'
);

We expose this as "non-nullable", but it's possible to store a JSON 'null' (rather than an SQL null) in the column. PostGraphile doesn't differentiate these, and trusts you'll do the right thing. Otherwise all JSON/JSONB columns would have to be nullable, and that'd not be a pleasant experience.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions