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

    Omprakash

    01/30/2019, 1:00 PM
    I need to use another ORM on the data, the tables that Prisma create, makes it difficult to be accessed using the ORM
  • a

    ahebwa49

    01/30/2019, 3:56 PM
    Hi guys, how do we share code here? I'm new here so a way on where to read about it or go about it would do just fine
  • r

    rem

    01/30/2019, 4:59 PM
    Is there a way to get full stacktraces included in graphql errors when there's an exception (for development)? Currently only shows the error
  • t

    tonymj

    01/30/2019, 7:02 PM
    hello everyone, am puzzled on how prisma generated random string for ID, i want to generate something like that can any one point me to the right direction
  • t

    tonymj

    01/30/2019, 7:02 PM
    Thanks
  • n

    NoahVlncrt

    01/30/2019, 8:33 PM
    Has anyone had problems calling mutations in graphql playground? I keep getting data type is not defined and it seems like grapqhly playground won't let me pass a data field
  • r

    rarutu

    01/30/2019, 9:19 PM
    hey guys .. any idea if aws aurora is supported implicitly be supporting mysql and postgs?
    p
    • 2
    • 2
  • b

    bepasquet

    01/31/2019, 9:06 AM
    any updates on using geoqueries on prisma? or a alternative way? im using algolia but have over 100k records šŸ˜•
  • j

    Jon

    01/31/2019, 11:08 AM
    Hello everyone
  • j

    Jon

    01/31/2019, 11:11 AM
    I’m not sure why I am receiving the following error:
    Error: The type of Mutation.signup(data:) must be Input Type but got: SignupInput!.
    I’ve defined the type in my schema.graphql:
    Copy code
    # import * from './generated/prisma-client/prisma.graphql'
    
    type SuccessMessage {
      message: String
    }
    
    type Mutation {
      createProperty(title: String, url: String): Property!
      signup(data: SignupInput!): AuthPayload!
      signin(email: String!, password: String!): AuthPayload!
      signout: SuccessMessage
      requestPasswordReset(email: String!): SuccessMessage
      resetPassword(resetToken: String!, password: String!, passwordConfirmation: String!): User!
      confirmEmail(email: String!, emailConfirmToken: String!): AuthPayload!
    }
    
    type AuthPayload {
      token: String!
      user: User!
    }
    
    type Query {
      properties: [Property]!
      currentUser: User
    }
    
    type SignupInput {
      name: String
      email: String!
      password: String!
    }
    
    type User {
      id: ID!
      name: String!
      email: String!
      emailConfirmed: Boolean!
      permissions: [Permission!]!
    }
    What am I missing here?
    t
    • 2
    • 2
  • s

    Slackbot

    01/31/2019, 1:49 PM
    This message was deleted.
    r
    e
    • 3
    • 17
  • a

    ahebwa49

    01/31/2019, 2:21 PM
    Hi guys
  • a

    ahebwa49

    01/31/2019, 2:25 PM
    I guess i got a bug in my helper function, getUserId. As I've been following the beginner guide on node.js and GraphQL on the howtographql.com website.
  • a

    ahebwa49

    01/31/2019, 2:27 PM
    I believe the issue is about the token verification in this helper function.
    helper_function_in_util_js.js
    a
    • 2
    • 1
  • a

    ahebwa49

    01/31/2019, 2:29 PM
    that's the error that returns in the graphql playground
    error_in_grapghql_IDE_on_adding_a_post_mutation.js
  • a

    ahebwa49

    01/31/2019, 2:32 PM
    the post mutation that makes use of the getUserId helper function in the util.js file
    post_mutation_in_Mutation_js.js
  • a

    ahebwa49

    01/31/2019, 2:33 PM
    I really need someone to assist me troubleshoot the logic. I'm failing to trace the bug
  • d

    dmytro.paduchak

    01/31/2019, 2:53 PM
    hi I need help? how setup prisma wish my app inside one docker-compose file??like app its a service what dependet on prisma
    u
    m
    • 3
    • 11
  • d

    domko

    01/31/2019, 3:59 PM
    "Note that Prisma creates a new MongoDB database for each combination of service name and stage. " => https://www.prisma.io/docs/releases-and-maintenance/features-in-preview/mongodb-b6o5/#1.-setup should this still work? Tried to deploy http://localhost:4466/api/dev and http://localhost:4466/api/test and both read from same database (stage is not even in the name)
    • 1
    • 1
  • j

    Jon

    01/31/2019, 5:41 PM
    Any clue as to why I’m getting this error?
    Copy code
    "message": "Variable \"$_v0_data\" got invalid value { activationToken: \"b6f9bbcf6e798a87fc65c50b6d8519f3514161b6\", activationTokenExpiry: 1548952935887 }; Field value.email of required type String! was not provided.\nVariable \"$_v0_data\" got invalid value { activationToken: \"b6f9bbcf6e798a87fc65c50b6d8519f3514161b6\", activationTokenExpiry: 1548952935887 }; Field value.password of required type String! was not provided."
    Here’s my schema.graphql:
    Copy code
    # import * from './generated/prisma-client/prisma.graphql'
    
    type SuccessMessage {
      message: String
    }
    
    type Mutation {
      createProperty(title: String, url: String): Property!
     
      signup(email: String!): SuccessMessage
     
      accountActivation(activationToken: String!, url: String, name: String, password: String!, passwordConfirmation: String! ): User!
     
      signin(email: String!, password: String!): User!
      signout: SuccessMessage
      
      requestPasswordReset(email: String!): SuccessMessage
      resetPassword(resetToken: String!, password: String!, passwordConfirmation: String!): User!
    }
    
    type Query {
      properties: [Property]!
      currentUser: User
    }
    
    
    type User {
      id: ID!
      name: String!
      email: String!
      permissions: [Permission!]!
    }
    And here’s my query on the client side:
    Copy code
    const SIGNUP_MUTATION = gql`
      mutation SIGNUP_MUTATION($email: String!) {
        signup(email: $email) {
          message
        }
      }
    `;
  • j

    Jon

    01/31/2019, 5:42 PM
    In the backend, i’m trying to get an email to send when a user signs up. I don’t want to store any data until the user validates their email.
  • d

    Daniel Martins

    01/31/2019, 7:55 PM
    Hi all, I could not find any information regarding how is the recommended way to deploy RabbitMQ for Prisma: should I use a dedicated RabbitMQ cluster just for Prisma, or can I use an existing RabbitMQ cluster? Is there a way to customize the queue names (and things like that) so that I can point more than one Prisma deployment to the same RabbitMQ cluster (and not having messages for each Prisma deployment conflicting with each other)?
  • r

    rohit

    01/31/2019, 9:03 PM
    https://twitter.com/novvumio/status/1091076003093307392
  • t

    Travis Fischer

    01/31/2019, 9:23 PM
    i'm considering using Prisma as the DAL atop MongoDB for a new company i've founded, and it generally looks extremely well done, but i'm having trouble figuring out how & where i'd handle authentication + authorization with the stack. Prisma pretty much autogenerates all of your resolvers and server logic for you. from my understanding, you can either then wrap the Prisma server / DAL with your own server that handles auth and is a go-between, but this seems excessive since most of what you're doing in that go-between server would just be acting as a direct proxy... is it possible / advisable to expose the prisma server directly to my web + mobile clients?
    n
    • 2
    • 5
  • c

    chan1di

    01/31/2019, 9:44 PM
    does anyone know this error ?
  • s

    smartin

    01/31/2019, 9:49 PM
    hey guys, trying to query my app for
    events
    where the
    startTime
    field is a certain day, passed to the resolver as
    date = '2019-01-31'
    . simply doing
    prisma.events({ where: { startTime: date } })
    returns no results even though I only have events from this date.
  • s

    smartin

    01/31/2019, 9:57 PM
    DateTime_query_issue.js
  • r

    rarutu

    02/01/2019, 9:20 AM
    hey everyone ... we are setting up prisma using the docker image on docker hub ... and a mysql image ... what i see is that prisma creates 2 databases (prisma & default@default) ... my fear at the moment is that in production we will need to setup one db only (an aws rds endpoint) ... how will this work?
  • j

    JidƩ

    02/01/2019, 10:45 AM
    I updated prisma to 1.25.4 and I don’t see the ā€œsetā€ nested mutation, is this normal ?
  • j

    JidƩ

    02/01/2019, 10:57 AM
    beta too
1...201202203...637Latest