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

    Matt B.

    06/26/2019, 7:03 PM
    According to the docs, this should work, any help?
  • l

    lawjolla

    06/26/2019, 7:26 PM
    Does anyone know what happening with Prisma 1.36? I see a ton of alpha releases on DockerHub. Given Prisma 2, I thought the version 1 server would be dead.
    šŸ‘ 1
    d
    j
    +2
    • 5
    • 9
  • e

    Entrepreneur3

    06/26/2019, 8:28 PM
    Hey, does anyone know how I can use env variables in docker-compose.yml for my database connection?
  • s

    Stephen Jensen

    06/26/2019, 8:48 PM
    @Entrepreneur3 you can have a file called
    .env
    in the same directory as your docker-compose file. Make variables like this in the .env file:
    MY_VARIABLE=soomething
    then in the docker-compose you can call it like this:
    ${MY_VARIABLE}
    šŸ™ 2
    šŸ‘ 2
  • t

    Tyler Bainbridge

    06/26/2019, 10:10 PM
    https://prisma.slack.com/archives/CKQTGR6T0/p1561586378144400
  • o

    Olaf

    06/27/2019, 3:17 AM
    Hi everyone, I am working on a complex application and need to implement field/query/mutation level graphql directives for authorisation to certain bits of data, and would like to hear from anyone who has found a way to make it work. The Prisma blog article seems to be outdated. https://www.prisma.io/blog/graphql-directive-permissions-authorization-made-easy-54c076b5368e#a-declarative-approach-to-graphql-permissions-based-on-graphql-directives
    b
    • 2
    • 3
  • a

    anthony

    06/27/2019, 3:45 AM
    it amazing team, created so many tools here šŸ™‚ can i know about graphcool, graphql-yoga and Prisma. what is the relationship between them?
    h
    • 2
    • 2
  • s

    siyfion

    06/27/2019, 6:47 AM
    Is there a way to model a user that has many bookings, and each booking for that user must have a unique ā€œstart timeā€? ie. all bookings are 30mins long, so two can’t exist for 2pm.
    b
    j
    • 3
    • 2
  • e

    Entrepreneur3

    06/27/2019, 9:48 AM
    Has anyone experienced the same error?
    Copy code
    Error: Syntax Error: Expected Name, found EOF
    I am using graphql-yoga 1.18.0 and prisma 1.34. This error appears when I am trying to do a mutation which should save data into the database(without putting anything in the headers) When putting something into the headers like
    Copy code
    "Content-Type": "application/json"
    I get this error
    Copy code
    Unexpected token < in JSON at position 0
    • 1
    • 2
  • m

    Morten Bo RĆønsholdt

    06/27/2019, 9:52 AM
    does anyone have experience with running Prisma in production with RabbitMQ? I'm seeing crazy high memory usage for the Prisma node process. it jumps to 4.5 gb of memory when booting and it stays there. locally, with Docker it works fine and I'm not seeing those memory patterns
  • k

    koia

    06/27/2019, 3:27 PM
    is there something lighter than the apollo-client, is there an alternative to it that supports subscriptions?
    e
    • 2
    • 16
  • a

    ahebwa49

    06/27/2019, 3:56 PM
    Hello to you all. I having a strange error, I need some help. In my query to fetch all items, i specified the orderBy argument to return the items according to the item i created first, and it's of enum
    ItemOrderByInput
    according to the generated
    prisma.graphql
    file. However, the GraphQL error in the console is stressing that
    Enum value 'createdAt_ASC' is undefined in enum type 'ItemOrderByInput'.
    as shown in this image
    • 1
    • 3
  • e

    Entrepreneur3

    06/27/2019, 9:42 PM
    Has anyone experienced the error:
    Copy code
    Only absolute URLs are supported
  • e

    Entrepreneur3

    06/27/2019, 10:32 PM
    I am curious why I need to add
    Copy code
    require('dotenv').config({ path: './config/dev.env' });
    to the generated prisma-client index.js file to make my resolvers work without getting
    Copy code
    Error: Only absolute URLs are supported
    That forces me to the dev environment without being able to do production environment on the fly..
    k
    • 2
    • 8
  • t

    tafelito

    06/28/2019, 3:42 AM
    is there anyway to extend a prisma generated Query with nexus? I have a query that returns some values, I want the same query with the same parameters that prisma generates, I just need to filter some results before returning it, without having to re write the whole query
  • t

    tafelito

    06/28/2019, 3:45 AM
    or maybe there is a better way of doing what I need. I have a query that returns a list of categories. each category has a list of products. Prisma queries allows me to filter some products based on some input. What I need is to filter also the categories that don’t have any product
  • t

    tafelito

    06/28/2019, 3:46 AM
    and without having to do it from the front end
  • m

    Mr tiger

    06/28/2019, 5:11 AM
    Hi, whats the difference between
    @id
    and
    @unique
    in Prisma schema?
    h
    • 2
    • 1
  • m

    Mr tiger

    06/28/2019, 5:11 AM
    when should use I
    id
    and when
    unique
  • d

    Donnchadh

    06/28/2019, 12:49 PM
    Hi all. I am trying to connect prisma to a read-only RDS database. However, when running 'docker-compose up' I receive the following error: Exception in thread "main" org.postgresql.util.PSQLException: ERROR: cannot execute CREATE SCHEMA in a read-only transaction
    h
    • 2
    • 1
  • d

    Donnchadh

    06/28/2019, 12:50 PM
    I have migrations set to false in my .yml file. Does anyone know what the problem could be?
  • s

    Sriharsha Guduguntla

    06/28/2019, 10:58 PM
    Could someone help me out with deploying a backend GraphQL API I built with graphql-yoga, prisma, mongodb, and docker Here is my stackoverflow post: https://stackoverflow.com/questions/56810911/prisma-mongodb-docker-request-to-http-localhost4466-failed-reason-conne/56813364#56813364 I've been searching the internet for days but I can't seem to find a solution to this issue.
    b
    • 2
    • 2
  • b

    bkstorm

    06/29/2019, 8:11 AM
    I encounter this error when running
    ts-node src/index.ts
    . I try to update typescript to
    3.5.2
    but it doesn’t work. How to fix this error? Try to search on google but I haven’t found anyway.
    h
    • 2
    • 2
  • e

    Ehsan sarshar

    06/30/2019, 11:43 AM
    prisma deploy take to log to complete
  • e

    Ehsan sarshar

    06/30/2019, 11:44 AM
    I using a local container on windows 10 and a postgres database on heruko
  • e

    Ehsan sarshar

    06/30/2019, 11:47 AM
    my last deploy take 371.0 second to complete
    😭 1
    😄 1
    🐢 2
    m
    h
    • 3
    • 6
  • s

    sixtatami

    06/30/2019, 1:58 PM
    hi, is there already any description how to deploy PhotonJS to lets say Heroku or anywhere else?
    h
    • 2
    • 2
  • p

    Peder Johnsen

    06/30/2019, 11:49 PM
    Is this page up to date? https://www.prisma.io/features/databases
    h
    • 2
    • 2
  • p

    Peder Johnsen

    06/30/2019, 11:50 PM
    I was thinking about using mongodb, but looks like I should pick one of the other 2 if I want the whole feature set šŸ¤”
  • e

    Ehsan sarshar

    07/01/2019, 4:38 AM
    what's the difference between @id and @unique
    p
    • 2
    • 6
1...287288289...637Latest