export function exampleDocumentSnapshotChange()

in src/providers/firestore.ts [122:147]


export function exampleDocumentSnapshotChange(): Change<
  firestore.DocumentSnapshot
> {
  return Change.fromObjects(
    makeDocumentSnapshot(
      {
        anObject: {
          a: 'bar',
        },
        aNumber: 7,
      },
      'records/1234'
    ),
    makeDocumentSnapshot(
      {
        aString: 'foo',
        anObject: {
          a: 'qux',
          b: 'faz',
        },
        aNumber: 7,
      },
      'records/1234'
    )
  );
}