Created protoDocument from proto.Message preserves generated XXX_* fields. #1367
Labels
api: firestore
Issues related to the Firestore API.
type: question
Request for information or clarification. Not an issue.
Cross posting from firebase/firebase-admin-go#228 as suggested by @hiranya911
Hello,
Steps to reproduce:
I am looking for a quick protobuf to firestore push, without fiddling with json or string maps in go. Reading the code I saw that
data interface{}
can be a struct or a pointer to a struct, passing the pb.Message works perfectly fine, however it also serializes the generated XXX_ fields in my pb.go file. Please see the code for a quick example.Is this left as is on purpose or perhaps it's an oversight?
Thank you in advance!
Relevant Code:
The text was updated successfully, but these errors were encountered: