Closed arahmancsd closed 1 year ago
Because of internal reasons the plugin only supports properties with the type long
, so you'll need to change the Id
and LikesCount
from int
to long
:
public class Post : IFirestoreObject
{
// change from int to long
[FirestoreProperty("id")]
public long Id { get; set; }
[FirestoreProperty("likesCount")]
public long LikesCount { get; set; }
}
Thanks, long
solved the issue.
I have the followings to get, add, and update data in Firestore, however, it seems somewhere in the wrapper it doesn't cast int64 to int32 or vice versa while the model itself doesn't contain long or Int64.