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

feat: readable/writable fields #99

Closed
MrSwitch opened this issue Oct 17, 2019 · 0 comments · Fixed by #100
Closed

feat: readable/writable fields #99

MrSwitch opened this issue Oct 17, 2019 · 0 comments · Fixed by #100

Comments

@MrSwitch
Copy link
Member

Set restrictions per field to restrict it's usage in:

  • SELECT field's ...
  • INSERT .. (field's...) ..
  • UPDATE .. field's...

Let fields be defined with readable and or writable flags in the schema

field_name: {
    readable: false,
    writeable: false
}

And shorthand field_name: false to prevent all usage.

MrSwitch added a commit that referenced this issue Oct 18, 2019
MrSwitch added a commit that referenced this issue Oct 18, 2019
MrSwitch added a commit that referenced this issue Oct 18, 2019
* feat(field-access): enable declarative field access permissions, #99

* refactor(field-access): remove inaccessible code, #99

* test(field-access): update tests and jsdocs, #99

* docs(field-access): add docs, #99

* feat(inherit): dare.use to deep extend the exiting schema and handlers #99

* test(field-access): refactor, #99

* fix(inherits): should not mutate inputs or instance it extended, #99

* fix(inherits): only deep clone on input passed to dare.use(opts), #99

* refactor(inherits): clone the inputs, #99

* refactor(inherits): switch to deepMerge, #99

* refactor(cleanup): remove redundant utils/extend, #99

* test(style): tidy, noissue
MrSwitch pushed a commit that referenced this issue Oct 18, 2019
# [0.33.0](v0.32.3...v0.33.0) (2019-10-18)

### Features

* **field-access:** enable declarative field access permissions [#99](#99) ([e1311af](e1311af))
MrSwitch pushed a commit that referenced this issue Oct 18, 2019
# [0.33.0](v0.32.3...v0.33.0) (2019-10-18)

### Features

* **field-access:** enable declarative field access permissions [#99](#99) ([e1311af](e1311af))
MrSwitch added a commit that referenced this issue Oct 18, 2019
MrSwitch pushed a commit that referenced this issue Oct 18, 2019
## [0.36.2](v0.36.1...v0.36.2) (2019-10-18)

### Bug Fixes

* **field-access:** revert deepMerge, it clones everything, [#99](#99) ([cf520ec](cf520ec))
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

Successfully merging a pull request may close this issue.

1 participant