FaunaRepository<T extends Entity> class abstract

Implemented types

Constructors

FaunaRepository(String collection, String all_items_index)

Properties

all_items_index String
final
collection String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

find(String id, Function deserialize) Future<Optional<T>>
It finds an Entity for the given Id.
override
findAll(PaginationOptions po, Function deserialize) Future<Page>
  • It retrieves a {@link Page} of {@link Post} entities
    • for the given {@link PaginationOptions}.
    • @param po the {@link PaginationOptions} to determine which {@link Page} of results to return
    • @return a {@link Page} of Entities //
  • override
    nextId() Future<Optional<String>>
    It returns a unique valid Id.
    override
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    remove(String id, Function deserialize) Future<Optional<T>>
    It finds the Entity for the given Id and removes it. If no Entity can be found for the given Id an empty result is returned.
    override
    save(T entity, Function deserialize) Future<T>
    It saves the given Entity into the Repository.
    override
    saveQuery(String id, Expr data) → Expr
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited