In the risk of asking a dummy question: Is it poss...
# community-help
j
In the risk of asking a dummy question: Is it possible to
query_by
id? I have a collection with food records and I have used the GTIN as id. Now I want to be able to query by GTIN.
j
id
is a special field used internally, so it can’t be used in
query_by
. You would have to create another field called say
gtin
and use that in query_by
j
And it's not considered an anti-pattern to have the same piece of information appearing twice within one document?
j
Not in the case of ID
j
Got it, thanks 🫡
👍 1