Disabling ID in Document Payload #280
Answered
by
wovalle
james-a-roland
asked this question in
Q&A
-
Hi there! I noticed that the ID is written by default to the document - is there some annotation marker to disable this? Looked through the tests and didn't see anything that popped out. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
wovalle
Oct 18, 2021
Replies: 2 comments 1 reply
-
As of now this is a design choice/limitation. More info in #207 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wovalle
-
Hey James! That's unsupported from the library point of view but I don't
see why it wouldn't work
…On Mon, Oct 18, 2021 at 5:04 PM James Roland ***@***.***> wrote:
Thanks for the quick response @wovalle <https://github.com/wovalle>! I
tried using the @ignore
<https://github.com/wovalle/fireorm/blob/master/src/Decorators/Ignore.ts>
decorator on the id field, which seemed to work.
- On the write path, this just deletes the K/V pair in the serialized
dictionary.
- On the read path, there's no key K/V pair that was written, so no
pair to to read,
Does that sound correct, or am I missing something?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#280 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB35QJD7BX42WJWKI2UGLUDUHQZPVANCNFSM5GFVT3KQ>
.
--
Willy Ovalle
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of now this is a design choice/limitation. More info in #207