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

    THpubs

    12/18/2018, 2:10 PM
    Ah thanks @Josh But I need it to be stored as a decimal because I run raw SQL queries using those values. For example, Im running a query to find the nearest locations.
  • f

    faure

    12/18/2018, 5:23 PM
    Bump 🙏
    f
    • 2
    • 2
  • f

    faure

    12/18/2018, 5:24 PM
    Https://github.com/prisma-binding/issues/194
  • d

    Daniel Dosen

    12/18/2018, 6:51 PM
    Hi all - I'm working with Prisma - (TS over Postgres) and if I look at the generated code, I see a createdAt and upatedAt fields - only they don't seem to be exposed. If I wanted access to those values - can I get to them?
    n
    • 2
    • 4
  • d

    Daniel Dosen

    12/18/2018, 6:58 PM
    Hi all - I'm looking at Prisma and change my data model - and see no database migration files anywhere - (code or DDL) - are those just created as temporary files and then deleted? Is that designed to hide complexity to the end user?
  • j

    Josh

    12/18/2018, 9:52 PM
    What is a way I can let my client side code benefit from the schema generation of Prisma? It seems a waste to rewrite all of those types so that my client can make the same kinds of queries of the Prisma database as the Prisma client can...
  • l

    Lucas Munhoz

    12/19/2018, 7:23 AM
    I am getting this error trying to authenticate in the console. 😅
    d
    • 2
    • 1
  • r

    Raj

    12/19/2018, 7:34 AM
    @Lucas Munhoz create an account and then grant permission
  • e

    ed

    12/19/2018, 11:07 AM
    hi guys, I am migrating my graphcool backend to prisma, but I am trying to implement the custom resolvers following some of your examples like this https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth
  • e

    ed

    12/19/2018, 11:08 AM
    but problem is in that way it only shows the resolvers created in
    schema.graphql
    and not the prisma resolvers
  • e

    ed

    12/19/2018, 11:09 AM
    it seems I would need 2 services for that, 1 to run prisma CRUD, and 1 to run my custom resolvers, it could be 2 endpoints unless I manually create the resolvers again in the
    schema.graphql
  • e

    ed

    12/19/2018, 11:09 AM
    am I missing something? thanks in advance
    n
    • 2
    • 1
  • f

    fgreinus

    12/19/2018, 1:22 PM
    Hey guys. I'd like to do a "ping" or "connection check" when my express-server starts to check if prisma is available via the generated client. Any ideas on how to do this best? (I mean, i could just fire a random query or sth, but maybe there is a recommended way)
    d
    p
    a
    • 4
    • 7
  • g

    Garvold

    12/19/2018, 4:35 PM
    Hi guys, I have a web app with graphql and prisma/mysql, I am trying to incorporate our auth system (ldap/sso) with the prisma. has anyone had an experience with that? basically I will need to put a generated key in the password value for mysql connection.
    p
    • 2
    • 2
  • l

    lukas

    12/19/2018, 8:40 PM
    Does some1 use prisma-admin tool? I am trying to use it but getting error on UI
    GraphQL error: Your token is invalid. It might have expired or you might be using a token from a different project.
    probably I have to pass env variable to start script…but can not find it in doc I have tried
    prisma-admin localhost:xxxx --env-file NAME
    but getting same error
    p
    • 2
    • 3
  • n

    Natalia Majkowska

    12/19/2018, 9:34 PM
    Hi guys, I am quite new in prisma and I am struggling with bug. I am not sure it is a right channel but I getting this error
    "Cannot query field 'any name of my mutation' on type 'Mutation'.
    , locally everything works but after
    prisma deploy
    I don't have my mutations in docs for my endpoint. I am using
    Copy code
    "graphql-yoga": "^1.16.7",
        "prisma": "^1.23.1",
        "prisma-binding": "^2.2.11"
    Do you have any ideas why?
    p
    • 2
    • 7
  • f

    Fran Dios

    12/20/2018, 2:31 AM
    @do4gr has Prisma stop casting String to Int values on mutations (and vice versa)? I was updating ‘123’ before to an Int field and was working fine but it suddenly started crashing 🤔
    d
    • 2
    • 13
  • b

    Bruno Prela

    12/20/2018, 3:55 AM
    Has anyone had this issue https://www.prisma.io/forum/t/network-error-fetcherror-request-to-http-localhost-4466-app-failed-reason-socket-hang-up/3142/3 and perhaps has any idea on how it may be caused/debugged. I think I might be doing something drastically wrong if one user on my app can result in prisma being overwhelmed this much.
  • b

    bengie

    12/20/2018, 4:06 AM
    Did prisma switch from using a mysql database by default to using postgres?
  • b

    bengie

    12/20/2018, 4:08 AM
    I’ve been tinkering with prisma on and off for a while, coming back to it every few weeks and it seems like so much has changed every time, I don’t know where to start 🙂
  • b

    bengie

    12/20/2018, 4:08 AM
    Does anyone else ever feel like this?
  • l

    Lucas

    12/20/2018, 4:33 AM
    Guys what im doing wrong?? I just get the code from the tutorial I am trying to create query to get all the users, so simple. but when I try my query in the playground it returns:
    "message": "Cannot return null for non-nullable field Query.users.",
    Query:
    Copy code
    query {
    	users{
       id 
      }
    }
    Code: https://github.com/RecoX/test-graph/blob/master/src/schema.graphql
    b
    • 2
    • 2
  • l

    Lucas

    12/20/2018, 5:25 AM
  • l

    Lucas

    12/20/2018, 5:25 AM
    Just change computer and now i get this error ,anyone else ??
  • l

    Lucas

    12/20/2018, 5:39 AM
    Guys you have a bug in your auth system https://www.prisma.io/forum/t/prisma-login-cli-network-error-unexpected-token-in-json-at-position-0/5378
  • h

    hinsxd

    12/20/2018, 7:51 AM
    Hi there
  • h

    hinsxd

    12/20/2018, 7:53 AM
    What is the best way to write resolvers when your schema is not in sync with your data model? For example in the data model
    Copy code
    type User {
      a
      b
      c
      d
    }
    and my schema is
    Copy code
    type User {
      a
      b
      Profile
    }
    type Profile {
      d
      e
    }
  • h

    hinsxd

    12/20/2018, 7:53 AM
    what should I return inside the Profile field in User schema?
  • h

    hinsxd

    12/20/2018, 7:56 AM
    it seems that returning
    true
    for
    Profile
    and writing the sub fields of
    Profile
    normally does works, but it doesnt feels natural
  • l

    Lucas

    12/20/2018, 8:35 AM
    https://www.prisma.io/forum/t/cannot-return-null-for-non-nullable-field-user-id/5443
    h
    • 2
    • 4
1...178179180...637Latest