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

    drk

    06/07/2018, 11:35 PM
    is there a decent strategy for working with local and private (cloud) prisma servers? say i want to work on my datamodels and deploy while offline, but deploy to prisma cloud for other stages (dev/stage/testing/prod)
    n
    • 2
    • 1
  • d

    drk

    06/07/2018, 11:36 PM
    i remember prisma.yml supported environment variables, but not seeing that in current docs
  • d

    Dukuo

    06/08/2018, 1:54 AM
    hey everyone.. I'm getting a little antsy with Prisma... When developing the GraphQL server after deploying a Prisma Service, do I need to copy/paste the generated schema to my GraphQL Server's schema.graphql? For example, let's say I want to bubble, let's say,
    updateUser
    mutation.. should I need to mirror the inputs and all the generated stuff to my server's schema? That, or horde my schema.graphql with
    import
    comments.
    n
    • 2
    • 3
  • d

    Dukuo

    06/08/2018, 2:04 AM
    Same question regarding prisma resolvers and generated interfaces
  • p

    panzupa

    06/08/2018, 8:53 AM
    Hi All
  • p

    panzupa

    06/08/2018, 8:54 AM
    I want to export data from the GraphCool project but I ran into problems described here https://www.prisma.io/forum/t/still-possible-to-export-data/2671/3 Can anyone help me?
    p
    • 2
    • 2
  • p

    picosam

    06/08/2018, 8:57 AM
    Hello all! I’m a bit lost online in finding a webpack configuration that works with my current setup: a Typescript Yoga that exposes a lambda handler. Any pointers?
  • r

    rein

    06/08/2018, 9:33 AM
    Hey guys, quick question, I'm getting an CORS error when trying to upload a file to localhost:4000/upload from a create-react-app on localhost:3000. The weird thing is, the File actually gets created and I get back a correct response in the server logs, but I still get a CORS error. I am missing something stupid?
    h
    n
    • 3
    • 9
  • p

    panzupa

    06/08/2018, 9:53 AM
    I'm trying to add auth0-template to my graphcool project and I ran into problems `{ "error": "The resolver function
    authenticate
    is not nullable, but the function returned null." }`. How can I debug that?
  • p

    panzupa

    06/08/2018, 9:53 AM
    ```
  • p

    panzupa

    06/08/2018, 9:54 AM
    "The payloadType for the resolver authenticate is not nullable, but the resolver returned null."
  • p

    panzupa

    06/08/2018, 10:06 AM
    anyone?
  • p

    panzupa

    06/08/2018, 10:08 AM
    @nilan do you know how I can debug resolver function? Why
    gc logs
    doesn't display messages logged by
    console.log('msg')
    ?
  • p

    panzupa

    06/08/2018, 10:10 AM
    I can only see the end error message such as that
    Copy code
    2018-06-08T09:43:18.358Z 2121ms FAILURE {
      "error": "The resolver function authenticate is not nullable, but the function returned null."
    }
  • j

    Jan

    06/08/2018, 11:02 AM
    how do you make it possible to query a sub field in a paginated manner without having prisma fetch all the possible entries for the list? ie. I have a query 'users' on the app layer which takes some filtering arguments, the 'User' type then has a sub field 'posts' which i would like to paginate, if i just write a resolver for the property on the app layer it receives the 'User' as the parent argument but with all its posts, is there a way to avoid pulling all posts from the database into the resolver, with the goal of improving performance?
    n
    • 2
    • 3
  • p

    panzupa

    06/08/2018, 11:17 AM
    I would appracite feedback https://www.prisma.io/forum/t/graphcool-project-resolver-function-does-not-work-payloadtype-for-the-resolver-function-is-not-nullable/3719
  • f

    Felix

    06/08/2018, 12:50 PM
    I am trying to connect prisma to an existing psql database but when i run
    prisma deploy
    I get the error
  • f

    Felix

    06/08/2018, 12:51 PM
  • f

    Felix

    06/08/2018, 12:52 PM
    somebody experienced a similiar issue ?
    n
    • 2
    • 1
  • f

    Felix

    06/08/2018, 1:10 PM
    log.txt
  • f

    Felix

    06/08/2018, 1:10 PM
    seems to be an issue the
    prisma introspect
    command. It was generating a type
    Int
    for the timestamp. Changing it to
    Float
    fixes the problem
    n
    • 2
    • 5
  • c

    ChinCluBi

    06/08/2018, 1:55 PM
    Copy code
    {
      "data": {
        "updateOrder": null
      },
      "errors": [
        {
          "locations": [],
          "message": "There can be only one input field named 'boolean'.",
          "path": [
            "updateOrder"
          ]
        }
      ]
    }
    i’m try to run this mutation
    Copy code
    mutation {
      updateOrder(
        where: {
          id: "cjdg5pgbcl17b0134orwjp082"
        }
        data: {
          status: DONE
        }
      ) {
        id
        status
      }
    }
    n
    • 2
    • 10
  • c

    ChinCluBi

    06/08/2018, 1:55 PM
    and i received an error
    There can be only one input field named 'boolean'
  • c

    ChinCluBi

    06/08/2018, 1:58 PM
    how to fix this problem?
  • z

    zonofthor

    06/08/2018, 3:59 PM
    howdy, if I have a node A with nested nodes Bs (through relations), how do I create a copy of A & Bs - I guess I'm looking for a way to clone them?
    n
    • 2
    • 4
  • b

    brant

    06/08/2018, 4:45 PM
    can anyone (@nilan ? 🙂) point me in the direction of a tutorial on setting up authentication? I was also wondering if you know of any tutorials for setting up github/google/fb user creation with prisma
    n
    • 2
    • 4
  • t

    timm

    06/08/2018, 4:55 PM
    has anyone followed the AWS Fargate deployment guide https://www.prisma.io/docs/tutorials/deploy-prisma-servers/aws-fargate-joofei3ahd and/or know whether it's possible to pull/copy the data down to local db? are there any prisma command or docs related to this?
    n
    • 2
    • 2
  • b

    brant

    06/08/2018, 5:54 PM
    I’m looking for a little help on implementing resolvers. Can anyone walk me through it. Context: I’ve done the howtographql.com node.js tutorial and would like to add fetch, update, and delete.
    n
    a
    • 3
    • 18
  • p

    panzupa

    06/08/2018, 6:14 PM
    I would appracite feedback on https://www.prisma.io/forum/t/bug-graphcool-error-payloadtype-for-the-resolver-function-is-not-nullable/3719
  • p

    panzupa

    06/08/2018, 6:15 PM
    @brant I'd help you but I'm struggling with the simplest case of resolver function ever 😞
    b
    • 2
    • 5
1...515253...637Latest