Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Mar 30, 2020

KeyValue repository does not require Entities, it can be used with any model. This was an intentional decision when implementing LB3 key-value APIs, to allow the key value to be provided outside of the data stored, thus enabling use cases like storing arbitrary data (including binary blobs) via the key-value API.

I have extracted this pull request from #4949 to get it landed faster.

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

KeyValue repository does not require Entities, it can be used with any
model. This was an intentional decision when implementing LB3 key-value
APIs, to allow the key value to be provided outside of the data stored,
thus enabling use cases like storing arbitrary data (including binary
blobs) via the key-value API.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
@bajtos bajtos added feature Repository Issues related to @loopback/repository package labels Mar 30, 2020
@bajtos bajtos requested a review from raymondfeng March 30, 2020 11:36
@bajtos bajtos self-assigned this Mar 30, 2020
@bajtos bajtos merged commit c30dce3 into master Mar 30, 2020
@bajtos bajtos deleted the feat/kv-model-repo branch March 30, 2020 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Repository Issues related to @loopback/repository package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants