class Google::Apis::FirestoreV1::Projection

The projection of document's fields to return.

Attributes

fields[RW]

The fields to return. If empty, all fields are returned. To only return the name of the document, use `['__name__']`. Corresponds to the JSON property `fields` @return [Array<Google::Apis::FirestoreV1::FieldReference>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 1919
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1/classes.rb, line 1924
def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
end