Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ralph Holzmann
    @ralphholzmann
    r.table('Chatroom_user').changes().run().then()
    where Chatroom and User have a hasAndBelongsToMany relationship
    Vladimir Marcellus
    @vmarcel

    Hello I am getting a rethinkdb error when I run an addRelation this is the console log output :

    { changes: [],
      deleted: 0,
      errors: 1,
      first_error: 'Expected type DATUM but found SEQUENCE:\nVALUE SEQUENCE',
      inserted: 0,
      replaced: 0,
      skipped: 0,
      unchanged: 0 }

    and the error that came with it:
    Unhandled rejection InvalidWriteError: An error occurred during the write

    Abdessamad BELARBI
    @samouds
    Hello
    I have a question, I'm trying to insert a batch of documents (100K) but the database hangs out everytime. I've tried to save the whole document at once via Model.save and to split the documents to chunks of 1K but I still the problem
    Entering slow growth mode Fail to create a new connection for the connection pool. Error:{"msg":"Failed to connect to MY REMOTE DATABASE in less than 20s","message":"Failed to connect to MY REMOTE DATABASE in less than 20s.","isOperational":true}
    any idea ?
    Janek Rahrt
    @janek26
    Hey,
    could you fast take a look at this new Issue? neumino/thinky#595
    Thx :)
    Logan Arnett
    @LoganArnett
    Does Thinky expose the conn object that RethinkDB exposes on connect?
    battuashwik
    @battuashwik
    Is it possible to use thinky only in readonly mode
    i mean when i initiate a thinky instance, i want to allow only read queries
    just to make sure no write / update /delete queries are performed
    Benjamin Clos
    @ondreian
    @battuashwik you cannot create a read only connection, but you can create a read only user via User permissions: https://rethinkdb.com/docs/permissions-and-accounts/
    and only establish the connection with a read only user, you can still attempt writes/deletes, but they will fail with the permissions check
    battuashwik
    @battuashwik
    Ahh Great. Thanks a lot
    Benjamin Clos
    @ondreian
    :+1:
    Zachary Rote
    @zacharyrote
    Is it possible to build a change feed for documents where a field value is in a set of possible field values?
    Zachary Rote
    @zacharyrote
    r.table("users").filter{ |doc| r.expr(["Peter", "John"]) .contains(doc["name"]) } How would this be represented in Thinky and a feed be generated?
    Zachary Rote
    @zacharyrote
    Figured it out.
    ServiceDescriptor.filter((service) => { return thinky.r.expr(serviceTypes).contains(service("type")); }).changes()
    Methrat0n
    @Methrat0n
    Hello everyone. Is this the place to cry for help ?

    We've just get our hands on thinky and we can't understand some error with bluebird : Unhandled rejection TypeError: net.isIPv6 is not a function

    We're using thinky with react if that's of any help, and the rethinkDB SGBD is running inside a docker.

    Do anyone know what's happening ?

    Michel
    @neumino
    Wrong version of node?
    Massimo Caroccia
    @carmas123
    Hi all...anyone is online?
    Jimmy Jones
    @jimjones26
    hey
    Jimmy Jones
    @jimjones26
    hey guys, I have the following code
    function populateOrganizations() {
      dbOrganizations.organization.forEach(result => {
        const organization = new Organization(result);
        organization.save();
      });
    }
    once the last for each has been save to the db, i'd like to return a promise so I can chain this function with other promise returning functions
    any ideas on how to accomplish that?
    Kevin O'Neill
    @kevinoneill
    @jimjones26 I know it’s a late answer, but … I would generally map the call to save, resulting in an array of promises then return promise.all on the map results. e.g.: (written inline so …)
    function populateOrganizations() {
      const operations = dbOrganizations.organization.map(result => {
        const organization = new Organization(result);
        return organization.save();
      });
      return Promise.all(operations);
    }
    Justin Sharp
    @yussinsharp
    Did the thinky.io site just recently go down? Or has it been like that for a while?
    DaniloBarros
    @DaniloBarros
    I think the site just went down
    Justin Sharp
    @yussinsharp
    Anyone know what is happening with the site? I could really use the docs...
    Justin Sharp
    @yussinsharp
    If anyone needs it
    DaniloBarros
    @DaniloBarros
    neumino/thinky#622
    Juliusz Fedyk
    @juliuszfedyk
    Hey guys, do you know if there's a way to retrieve the schema from the model?
    Ghost
    @ghost~54cee670db8155e6700f55cc
    @juliuszfedyk It would be great if this was built in. As far as I know this is the only option: https://www.npmjs.com/package/thinky-export-schema
    Justin Sharp
    @yussinsharp
    Does Model.docOn('saving') give you a callback to perform async validation/sanitization?
    Or should I be using .pre('save')? My worry with .pre('save') was that I thought it did not work with updates
    loogie
    @loogie
    hey all. how do you guys go about doing a unique id? is there a way to get say.. a count of records in table right in the default by a function?
    Justin Sharp
    @yussinsharp
    Can anybody help me with batch saving .save([])?
    In the docs it says:
    "If one error is produced by the server, the promise will be rejected."
    But I noticed it also gets rejected if any .pre('save') hook throws an error into the callback.
    Is there a way to not reject on the first error? And have it return an errors: [] array for each doc that failed and save the rest?
    Jignesh Parmar
    @jvparmar99_twitter
    Hello,
    I'm newer to use noSQL.
    Can anyone share whether Thinky is accessible with DynamoDB as well? Or Any ORM recommendation for DynamoDB?
    goonit
    @goonit
    Hey all, would anyone happen to know if the library has any typescript support?
    geo
    @geomen888
    Hello "thinky": "^2.3.9", regarding schema ... adresses:[type.object().schema({
    adress: type.string(),
    position: r.point(),
    name: type.string(),
    index: type.number()
    })],
    throw new Errors.ValidationError("The value must be String/Number/Boolean/Date/Buffer/Object/Array/'virtual'/'Point' for "+prefix);
    ^
    ValidationError: The value must be String/Number/Boolean/Date/Buffer/Object/Array/'virtual'/'Point' for [adresses][0][position]
    at parse (/home/geo/PROJECTS/SERVER-AEP/stage.1-TS-Driverlist/node_modules/thinky/lib/schema.js:284:11)
    So, I kindly ask for advice regarding poistiont: r. point() - how it need to be without errors. Thank U