https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • q

    qsys

    02/01/2018, 4:58 PM
    ... root tokens don't work, btw? (just following the guide/docs)
    Copy code
    $ graphcool root-token --token my-token
     ▸    Unknown flag --token
    
    Get in touch if you need help: <https://www.graph.cool/forum>
    To get more detailed output, run $ export DEBUG="*"
  • b

    Bnaya

    02/01/2018, 5:45 PM
    Hey, A question about chromeless. I want to get raw access, (or something close to it) on the client side. is it possbiel?
  • w

    wesbos

    02/01/2018, 6:02 PM
    @nilan do you have an example of importing and expoding a connection/aggregation in schema.graphql file?
  • w

    wesbos

    02/01/2018, 6:12 PM
    I think i figured it out - just copy/paste this from the generated file?
    Copy code
    itemsConnection(
        where: ItemWhereInput
        orderBy: ItemOrderByInput
        skip: Int
        after: String
        before: String
        first: Int
        last: Int
      ): ItemConnection!
    n
    • 2
    • 4
  • w

    wesbos

    02/01/2018, 6:12 PM
    and then import the missing types
  • r

    rohanray

    02/01/2018, 6:39 PM
    @nilan can you please help me with batch update? we would like to get a db dump, then modify and then export... If you can help me with below:
  • r

    rohanray

    02/01/2018, 6:39 PM
    Copy code
    $ prisma export -e ./.env -p ~/jpl-db-bkup/db-exp.zip
    Downloading nodes !
     ▸    Cannot read property 'jsonElements' of undefined
    
    Get in touch if you need help: <https://www.graph.cool/forum>
    To get more detailed output, run $ export DEBUG="*"
    n
    • 2
    • 1
  • r

    rohanray

    02/01/2018, 6:49 PM
    @nilan I'll take a snapshot of the VM and then upgrade prisma as it's a production app... Will feedback soon
  • p

    patstrz

    02/01/2018, 7:42 PM
    Hi all! are there any examples of how to migrate the Algolia integration to Prisma? I am still using an old web client project.
  • l

    lawjolla

    02/01/2018, 8:05 PM
    Silly question. Prisma isn't taking a string with a carriage return through Playground. I assume this is a GraphQL Spec issue and expected behavior, but what's the solution? e.g. update(str: "line1 line2") {id}
    Copy code
    {
      "error": "Syntax error while parsing GraphQL query. Invalid input \"\"line 1\\n\", expected StringValue, BooleanValue, NullValue, Variable, Comments, ObjectValue, EnumValue, NumberValue or ListValue (line 4, column 14):\n    formula: \"line 1\n             ^"
    }
    What am I missing? Do I need to sanitize it somehow?
  • l

    lawjolla

    02/01/2018, 8:31 PM
    Answer: It still needs to be "stringified"
  • j

    jasonsooter

    02/01/2018, 8:31 PM
    Running into issues trying to fetch/axios a file to the file api. Getting CORS errors. Any help. Here’s the code I’m running https://codesandbox.io/s/zq056ro42m
  • l

    lawjolla

    02/01/2018, 8:32 PM
    @jasonsooter You need to set CORS on the header
  • l

    lawjolla

    02/01/2018, 8:34 PM
    I don't know how it's done on the BaaS Graphcool or I'd submit that answer 🙂
  • j

    jasonsooter

    02/01/2018, 8:35 PM
    @lawjolla Alright I’ll give that a shot
    l
    n
    • 3
    • 20
  • m

    Maxi

    02/02/2018, 12:15 AM
    Halo ! sorry if this question is dumb, how can I set a default value for a list on the model? I am trying this
  • m

    Maxi

    02/02/2018, 12:15 AM
    strings: [Json!]! @defaultValue(value: []) @migrationValue(value: [])
  • m

    Maxi

    02/02/2018, 12:21 AM
    I am getting this ✖️ The field
    strings
    must specify the
    @migrationValue
    directive, because its type was changed or it became required:
    @migrationValue(value: "42")
    m
    • 2
    • 3
  • m

    Maxi

    02/02/2018, 12:21 AM
    but the field is new
  • s

    Slackbot

    02/02/2018, 1:08 AM
    This message was deleted.
    m
    • 2
    • 2
  • e

    eli

    02/02/2018, 1:20 AM
    How can I setup prisma to use an external database, like aurora?
    👍 1
    n
    m
    +2
    • 5
    • 32
  • m

    mikedklein

    02/02/2018, 2:12 AM
    Is the dashboard that is shown on the main webpage a premium feature or something I am not seeing that in my current project?
  • f

    Fi1osof

    02/02/2018, 5:53 AM
    Can i define model with current_timestamp on create like date: DateTime @defaultValue(value: "now()") ?
  • r

    rohanray

    02/02/2018, 7:31 AM
    Hello @nilan @sorenbs would appreciate some help: We have a production app https://www.jito-t20.com/ powered by a Prisma server
    prisma/1.1.2 (linux-x64) node-v8.9.4
    . It's on Digital Ocean:
    4 GB Memory / 80 GB Disk / BLR1 - Ubuntu 16.04.3 x64
  • r

    rohanray

    02/02/2018, 7:33 AM
    I had to bounce the server last night as it might have exhausted entire memory. Again I'm seeing the same issue, memory keeps on increasing constantly... below is a screenshot
  • r

    rohanray

    02/02/2018, 7:33 AM
  • r

    rohanray

    02/02/2018, 7:34 AM
    @sorenbs @nilan Could there be an issue of memory leakage? Would appreciate some support on this... Let me know if any details/logs is needed
  • r

    rohanray

    02/02/2018, 7:36 AM
  • r

    rohanray

    02/02/2018, 7:54 AM
    reuploading cpu/memory usage screenshot
  • r

    rohanray

    02/02/2018, 7:54 AM
    https://ibb.co/kQfkjR
1...556557558...637Latest