class Google::Apis::FirestoreV1beta1::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::FirestoreV1beta1::FieldReference>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1beta1/classes.rb, line 1578
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_v1beta1/classes.rb, line 1583
def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
end