Skip to content

pragma: optional by default #11

@mattfysh

Description

@mattfysh

build a way for queries to switch to 'optional by default' mode, which acts the same as adding ? to all assignment statements & object literal entries

in this new mode, add support for ! to indicate required values

a couple of options:

  1. add triple-dash comment to top of query, e.g. --- optional
  2. context chain modifier, e.g.
set my_var = @optional -> {
  all,
  entries,
  nullable,
  except!: #this .selector
}

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