Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Robbie Reynolds
    @robbiereynolds
    While trying to learn Astronomy, I'm noticing a mix of v1.x and v2.x examples and I'm getting confused as to what's what. Is there an official 2.x docs or repo?
    arggh
    @arggh
    In the left sidebar you should be able to open V1 and V2 docs separately.
    ..Though I think the new docs are not really finished and probably have some relics from V1.
    Santiago Galindo
    @lobosan
    Hi I'm kooking for a way to define relationships between collections (one to many, many to many) and keep data integrity, so when I delete and object related by id to another collection, then that document will be deleted automatically.
    Is it possible to handle this with astronomy?
    Jake Lacey
    @jakelacey2012
    This message was deleted
    Jake Lacey
    @jakelacey2012

    Hello,

    W20161012-12:28:17.508(1)? (STDERR) debugger listening on port 5858
    I20161012-12:28:19.829(1)? Resolve cb threw Maximum call stack size exceeded
    W20161012-12:28:19.831(1)? (STDERR) 
    W20161012-12:28:19.831(1)? (STDERR) /home/jlacey/.meteor/packages/meteor-tool/.1.3.5_1.1bjykex++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
    W20161012-12:28:19.832(1)? (STDERR)                         throw(ex);
    W20161012-12:28:19.832(1)? (STDERR)                               ^
    W20161012-12:28:19.832(1)? (STDERR) RangeError: Maximum call stack size exceeded

    I get a maximum call stack error in astronomy@2.1.1 and greater
    However I do not get it in 2.1.0

    I've found the piece of code which is causing the problems, I have this model called AS.Object which has a field that has a type of AS.Object. I also Have another field which has a type of [AS.Object].

    Has anything changed in how the types are resolved between 2.1.0 and 2.1.1?

    I'm going to create a test case for this, but I just wanted to ask in advance
    thanks :)
    Jake Lacey
    @jakelacey2012
    Hi I've created the test case,
    https://github.com/Centiq/Astro-Call-Stack
    I'll be creating the issue soon
    Jake Lacey
    @jakelacey2012
    jagi/meteor-astronomy#513
    jbbr
    @jbbr

    Hi;
    I'm trying to use Astronomy together with the new grapher package https://github.com/cult-of-coders/grapher

    It's working fine so far but I'm not quite sure how to handle transformation of documents in Astronomy 2.x
    As grapher fetches the documents, I'd had to change the grapher code to use astronomies find/findOne... methods.

    What I did instead: Added a transform function to every collection.

    transform(doc) {
        const t = new MyAstroClass(doc)
        t._isNew = false
        return t
      },

    This works fine but I'm unsure if this is a good solution. What are the reasons for Astronomy to drop Collection transforms in 2.x?
    Is it just to make it optional or to avoid side effects?

    Is it "safe" to use this kind of transform?

    Thanks in advance

    arggh
    @arggh
    @jagi regarding Enums, is there any explanation for this: "You can also define non number ENUMs, however it’s not recommended.", other than the fact that using Strings takes more space?
    Trying to use Astronomy's Enums in an app that utilizes HTML Select elements causes difficulties, when the Enum's integer values are cast into strings. Would be convenient to use just strings all the way. Also, the data in the Mongo collection would be more self-explanatory: compare [0, 1, 2] to ['YES', 'NO', 'MAYBE']. Any thoughts?
    tzapu
    @tzapu
    hi guys, thank you for a wonderful package :D
    i had one question for the more advanced users here, could i use transient fields or resolve to have, well, basically relations ? as in fetch a field from another collection into a field in the current collection?
    would that be impossible? bad? crap performance? etc?
    thanks
    Bryant Biggs
    @bryantbiggs
    hello everyone - if I have a form split up in sections where after each section clicks "Next" or something, how can I define a schema that will allow a gradual build-up of the document? If I define the schema and the first form only fills in 4 of N inputs, the validation fails because its missing the other inputs
    arggh
    @arggh
    @bryantbiggs 1) Keep the data stored elsewhere until the document is ready to be saved 2) Set the fields as optional, so they are not validated if they don't exist
    Chandrasekar
    @iamcsk

    HI
    I just started to use astronomy when I am trying to save my folder collection am getting some error which is below

    original
    :
    [Exception: TypeError: Cannot read property '_id' of undefined at

    Am i missing anything in configuration ? Thank you in advance

    Bryant Biggs
    @bryantbiggs
    @arggh thank you for the response but I was able to resolve the issue by saving the document as the base class type for the first form submission, then on the 2nd form submission I updated the class type from the base to the child class and stored the remaining information. This kept all of the validation and required fields intact in their respective classes
    Alexis A. Banaag Jr.
    @aabanaag

    hi, have some questions with Class.findOne(). Can I add query inside the findOne() method?

    Class.create({ name: ‘Settings’, fields: { userId: String, name: String } });

    now I want to do is Class.findOne({userId: ‘hello’}); or Class.findOne({ name: ‘Hi’ }); is it possible?

    Andrew Hartwig
    @Andrew1431
    Yes, but you also need a { collection: new Mongo.Collection('settings') } key in there.
    PolGuixe
    @PolGuixe
    which version of regex does it support?
    I am trying to find a suitable regex expression for URLs
    Romuald DANSOU
    @inromualdo
    Hi
    What about transaction with astronomy?
    Romuald DANSOU
    @inromualdo
    What about publish-composite? I am new with astronomy.
    Adalberto Soares
    @soaresa
    You can use publishComposite with astronomy but you must use collections in it and not the classes
    midisale
    @midisale
    I can't even get the examples running...
    on Class.create({...}) I get (STDERR) TypeError: Super expression must either be
    null or a function, not object
    any suggestions?
    using Meteor 1.4.2.3
    blob
    blob
    midisale
    @midisale
    blob
    midisale
    @midisale
    Figured it out. I was mistakenly putting "new" before Class.create
    Romuald DANSOU
    @inromualdo
    Thank you. Can i use babrahams:transactions with astronomy? If not how can i do transactions?
    Zak Lampert
    @zaklampert
    Is it possible to publish _removed documents explicitly?
    Lucas Peres
    @mysyfy
    how can i define my own cast method for each field ?
    need to parse date coming from input
    akumei
    @akumei
    Hi Have a super random question... do you know if Astronomy's save field modifier accepts anything besides an array?
    I currently am testing with it and we noticed that it says array of fields but can it just accept one single string that's not in an array? Thanks! :)
    Punita Ojha
    @punitaojha
    This message was deleted
    Srimal Priyanga
    @SrimalPriyanga
    documentation not clear especially "Fetching documents" section :worried:
    davidsavoie1
    @davidsavoie1
    In the Transient fields section, the age field is calculated and initialized in the afterInit event. In that case, will age change as time goes on, or is it calculated only once and then it's set? Why should we use Transient fields instead of Helpers in this case?
    pit999
    @pit999
    Is there an example for integration with Ionic and typescript?
    pit999
    @pit999
    How can I use MongoObservable (import { MongoObservable } from 'meteor-rxjs';)
    Alex Price
    @remotealex
    Is there a nice way to prevent the updating of a field entirely? I'm extending the Meteor.users collection and want to safeguard against updating emails and passwords though the Astro class