Skip to content

Encode empty arrays as firestore arrays#1003

Merged
dwsupplee merged 1 commit intogoogleapis:masterfrom
jdpedrie:firestore-empty-array
Apr 9, 2018
Merged

Encode empty arrays as firestore arrays#1003
dwsupplee merged 1 commit intogoogleapis:masterfrom
jdpedrie:firestore-empty-array

Conversation

@jdpedrie
Copy link
Copy Markdown
Contributor

@jdpedrie jdpedrie commented Apr 9, 2018

Currently it is not possible to encode an empty array as a Firestore ArrayValue. This change will encode [] as ArrayValue, and (object) [] as MapValue. This is in line with changes made in other areas of the library, namely Datastore in #974.

This issue was first reported in #996.

@jdpedrie jdpedrie added the api: firestore Issues related to the Firestore API. label Apr 9, 2018
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 9, 2018
@jdpedrie jdpedrie mentioned this pull request Apr 9, 2018
@DiogoRMax
Copy link
Copy Markdown
Contributor

Very good... thanks for the attention... I was having difficulty standardizing my docs, this probably helps a lot...

@dwsupplee dwsupplee merged commit 6b42336 into googleapis:master Apr 9, 2018
@jdpedrie jdpedrie deleted the firestore-empty-array branch April 9, 2018 19:36
@dwsupplee dwsupplee mentioned this pull request Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the Firestore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants