https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • d

    drk

    05/30/2018, 3:34 AM
    oh no i had setup my prisma server with aws aurora previously, but upon return to my project it seems the documentation has been removed šŸ˜• https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0ahUKEwjrg_6WwKzbAhUrh1QKHfnrBGUQFgg7MAI&url=https%3A%2F%2Fwww.prisma.io%2Fdocs%2Ftutorials%2Fdeploy-prisma-servers%2Fprisma-cloud-ua9gai4kie%2F&usg=AOvVaw3wwoSiFzOuz4EAIQ_8228X
    • 1
    • 3
  • j

    Jeff

    05/30/2018, 3:37 AM
    Hi, what should I do to rollback when something went wrong in this situation, thanks a lot.
    transaction___rollback.js
  • u

    user

    05/30/2018, 5:22 AM
    A file was commented on
  • s

    snolahc

    05/30/2018, 6:42 AM
    Hello šŸ™‚ I’m new to GraphQL and graph.cool and i find your solution really elegant šŸ™‚ Although i got some issues designing my data models (@model and reference() issues). I guess it’s super simple, so if anyone could look an eye to my 30 lines of code to unblock me it’d be awesome šŸ™‚ https://etherpad.net/p/graphcool-sno
    h
    • 2
    • 2
  • c

    Christian

    05/30/2018, 7:05 AM
    is there any way of influencing the order of a to-many relation list?
    • 1
    • 1
  • a

    Arnab

    05/30/2018, 7:22 AM
    I like the
    Copy code
    Works across any kind of 
    database
    headline followed by
    Currently supports Postgres and MySQL
    šŸ˜…
    šŸ™ˆ 1
    n
    • 2
    • 1
  • s

    siyfion

    05/30/2018, 8:33 AM
    Is there a way to get autocomplete working in IDE for the prisma-binding object?
    v
    • 2
    • 1
  • s

    siyfion

    05/30/2018, 9:41 AM
    Getting this error when trying to re-seed:
    Copy code
    $ prisma seed --reset
    Seeding based on node seed.js !
     ā–ø    cross_spawn_1.default is not a function
    
    Get in touch if you need help: <https://www.graph.cool/forum>
    To get more detailed output, run $ export DEBUG="*"
    n
    • 2
    • 5
  • s

    siyfion

    05/30/2018, 9:41 AM
    Though if I manually clear the database, and then run
    node seed.js
    myself it works fine…?
  • f

    fredelf

    05/30/2018, 1:02 PM
    Anyone here has any experience implementing apollo engine together with Prisma? Does prisma hide away alot of the query tracing, or are you able to dig deep with engine?
  • s

    siyfion

    05/30/2018, 1:07 PM
    @fredelf At which layer are you thinking of added Engine? In front of your GraphQL API? Or in front of Prisma?
    p
    • 2
    • 2
  • j

    Jscott388

    05/30/2018, 2:51 PM
    What’s the github repo that has the database connectors?
    m
    • 2
    • 1
  • h

    hez

    05/30/2018, 4:32 PM
    Another question, maybe for somebody who is intimately familiar with AWS CloudFormation.... Using the Prisma-provided templates for spinning up database and fargate stacks, each of these templates automatically generates its own VPC to run in. Is it worth it to run your database and your prisma server in the same VPC and, if so, how does one hack the template to allow this?
    d
    • 2
    • 6
  • m

    Michael Jones

    05/30/2018, 4:52 PM
    Hello, after reading through the AWS Fargate tutorial it all looks rather simple to deploy. My only question is does it require Docker? I do not have Docker set up on my computer, so if I were to take the Fargate route, would I need to install Docker at all? Thank You
    d
    w
    • 3
    • 8
  • m

    marano

    05/30/2018, 5:40 PM
    Hi! Can I run prisma on heroku? Does anybody has a guide on that?
    m
    m
    +2
    • 5
    • 6
  • p

    peter

    05/30/2018, 6:49 PM
    shouldn't
    prisma ls
    show all my deployed services? I have one service currently deployed but executing
    prisma ls
    returns 'No deployed service found'. Additionally, when running
    prisma info
    (in prisma dir), the cli returns the http and ws endpoints as expected...this seems like a problem, no?
    • 1
    • 1
  • c

    codebeast

    05/30/2018, 6:53 PM
    I made a getting started video for GraphQL Yoga: https://egghead.io/lessons/node-js-build-a-simple-graphql-server-with-graphql-yoga
    šŸ‘ 8
  • p

    picosam

    05/30/2018, 7:44 PM
    Hello! I’m trying to build a query on using GraphQL Yoga that calls Prisma and returns results. There is, however, a considerable difference in the object queried and that returned. Consider that the the Prisma query would be as follows:
    Copy code
    query {
      id
      multilingualData {
        language
        title
      }
    }
    where info would be an array. I want the user to query GraphQL Yoga as follows:
    Copy code
    query {
      id
      title
    }
    It is, of course, easy to map the Prisma result to another object and return it to the user. But then the
    info
    argument comes into play. In order for me to fetch
    multilingualData
    I have to pass an
    info
    object to the Prisma query, the following string for example:
    { id multilingualData { language title } }
    which is of course error-prone. Any thoughts on how to better achieve this?
    l
    c
    • 3
    • 42
  • p

    picosam

    05/30/2018, 7:57 PM
    On a more philosophical note (:D) would you actually do this mapping/object translation on the server at all, or would you just expose the query as-is and let the client do that?
  • w

    willvincent

    05/30/2018, 7:58 PM
    I would probably query by id & language, and serve up the appropriate content that way. I’m fairly sure that’s how most multi-lingual things work
    p
    m
    • 3
    • 2
  • w

    willvincent

    05/30/2018, 7:58 PM
    the admittedly, my direct experience with multi-lingual is somewhat limited šŸ™‚
  • s

    splodingsocks

    05/30/2018, 8:52 PM
    I’ve just followed the fargate tutorial and deployed a small cluster. While trying to add the server to my team on Prisma cloud I get ā€œCould not connect to serverā€, though I’ve already deployed a service to that server through the CLI successfully, and I’m using the same values
  • s

    splodingsocks

    05/30/2018, 8:52 PM
  • s

    splodingsocks

    05/30/2018, 8:52 PM
    Any ideas?
  • s

    splodingsocks

    05/30/2018, 8:55 PM
    Looks like the response says ā€œcould not connect to serverā€
  • s

    splodingsocks

    05/30/2018, 8:55 PM
  • m

    matic

    05/30/2018, 8:56 PM
    Hey everyone šŸ‘‹ Check out this article about Oranges and Lemons that I made. It's about locking them down in the basement and using Prisma at the same time! šŸšŸŒšŸ“ https://medium.com/@maticzavadlal/graphql-shield-9d1e02520e35
    šŸ™Œ 3
    šŸ’Æ 5
    l
    p
    e
    • 4
    • 5
  • k

    Kien Vo

    05/30/2018, 8:59 PM
    anyone here running Prisma on Google App Engine?
  • w

    willvincent

    05/30/2018, 9:10 PM
    Supposing I have a data model that looks something like this:
    Copy code
    id: !ID @unique
    name: String!
    geodata: String!
    and geodata will store stringified json, and then when querying I want the resolver to manipulate that json data somehow, for sake of argument lets say manipulate it into valid geojson, but for reasons I’m not going to go into I don’t need or want an actual geojson field in the database for this data attribute. How might one go about manipulating data in a resolver and similarly in a mutation, as it’s going into/coming out of the data store?
    s
    e
    • 3
    • 9
  • w

    willvincent

    05/30/2018, 9:10 PM
    I suspect that can be done in the resovler but I don’t see anything even relating to resolvers in prisma docs
1...444546...637Latest