Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Tom
    @GitTom
    For a @collection Class, is there a way to indicate that a property should not be written to the datastore?
    If not, how about making it so that properties that begin with underscore (the convention for indicating private which is rather redundant in TS) are excluded? Or, if annotations can be attached to properties could use an annotation instead.
    My use case is adding a property that tracks the instance's status, eg. whether it is dirty and needs to be updated.
    Willy Ovalle
    @wovalle
    Hello! Right now fireorm doesnt have support for "computed" properties. Honestly I haven't thought in that use case. I can see it implemented as a type of annotation or something similar. You can create an issue in the repo and we could discuss how the API would look like
    Tom
    @GitTom
    Thanks for the response. I added an wovalle/fireorm#116.
    Tom
    @GitTom
    And while I was at it, I created another issue regarding wovalle/fireorm#117...
    Willy Ovalle
    @wovalle
    Thanks! I'm kind of having a hectic week but I'll check them out soon!
    Tom
    @GitTom
    Great thanks, but no hurry at all. I appreciate all the work that you and the other contributors are doing.
    Nathan Jones
    @jonesnc
    Does fireorm support firestore Timestamp fields?
    Nathan Jones
    @jonesnc
    I'm guessing this issue relates to this question: wovalle/fireorm#58
    Willy Ovalle
    @wovalle
    @jonesnc Yes! It automatically converts them to Date objects
    Apoorv Kumar
    @apoorv-kumar
    Typescript newbie here. Thanks Willy for building this ORM. I want to understand the implications of the decorator being an experimental feature in TS. Is the feature practically stable or is it still heavily being iterated upon and might break apps using fireorm ?
    Mihir Somani
    @MihirSomani
    Is there any support for "in" queries? https://firebase.google.com/docs/firestore/query-data/queries#in_and_array-contains-any
    I couldn't find any reference to this in docs or GitHub issues.
    Mihir Somani
    @MihirSomani
    I found this PR: wovalle/fireorm#123
    Will this be integrated in the near future? :|
    Willy Ovalle
    @wovalle
    @apoorv-kumar So sorry, I just saw this message. This post has some insight about the future of decorators: https://www.reddit.com/r/typescript/comments/drp61y/are_decorators_really_still_experimental_can_i, TLDR It'll take a while for decorators to be released in ECMASCRIPT but typescript already made a commitment to them so I do think is safe to use them
    @MihirSomani Currently I don't have time to finish it :(, might be a good idea to ping the developer that worked on it originally
    Elias Reis
    @eliasreis54
    Hello everyone!
    Is there some code examples of use fireorm? The examples in medium article i'm getting 404 from github
    Arnaldo Perez
    @arnaldoperez
    hey there!!
    I'm getting this error. I made sure that my object to insert has an id and the collection decorator has it's name like @collection("plan")
    error: Error: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.
    Willy Ovalle
    @wovalle
    Hey @arnaldoperez! That error is thrown by the firestore sdk when you try to access a document with an invalid path. I imagine that the collection you're trying to insert has documents without a valid id field and that's why is happening. If the problem persist I'd recommend creating a tiny repo reproducing this issue so I can take a look
    Willy Ovalle
    @wovalle
    FYI I'm replacing fireorm/gitter with the github discussions right in the repo! https://github.com/wovalle/fireorm/discussions