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

    gsancho

    04/14/2018, 3:40 PM
    hello guys!!
  • g

    gsancho

    04/14/2018, 3:43 PM
    I am workin with Prisma
  • g

    gsancho

    04/14/2018, 3:43 PM
    How can I add authorizations to some resolvers?
    m
    m
    l
    • 4
    • 6
  • k

    kdn

    04/14/2018, 6:14 PM
    Anyone know how to disable Prisma caching of requests?
    m
    • 2
    • 2
  • c

    clark

    04/14/2018, 6:14 PM
    I have that same question
  • c

    clark

    04/14/2018, 6:15 PM
    Are there multiple cache layers? Like one on the server and one on the cluster or something?
    m
    • 2
    • 1
  • h

    huv1k

    04/15/2018, 10:24 AM
    Will be there recordings from conference?
  • h

    harmony

    04/15/2018, 10:44 AM
    see #graphql-europe
    h
    • 2
    • 1
  • s

    salvatore

    04/15/2018, 11:39 AM
    Hey guys, just wondering if prisma has (or plans to have) hooks? i.e. your typical beforeCRUD/afterCRUD filters that would allow to alter behaviour based on business logic requirements
  • s

    salvatore

    04/15/2018, 11:40 AM
    One of our graphql projects uses sequelize and, for example, we have hooks to make sure update requests don't actually update records but create revisions - this is all invisible to the api client and it's done through sequelize hooks
  • s

    salvatore

    04/15/2018, 11:41 AM
    other things I could think about are more complex scenarios that would require single table inheritance etc.
  • h

    harmony

    04/15/2018, 12:18 PM
    you're gonna have to implement that yourself
  • h

    harmony

    04/15/2018, 12:18 PM
    prisma is just the database, nothing else
  • m

    mekwall

    04/15/2018, 2:02 PM
    I've created a simple prisma service by using
    prisma init
    but when I do
    prisma deploy
    it doesn't show up in the prisma console. What am I missing?
    n
    • 2
    • 20
  • p

    pasa

    04/15/2018, 3:03 PM
    Hey guys, I read at multiple occasions, that the .env file in a prisma project should be edited? I don't have one. Is it necessary to eject the project first?
    v
    • 2
    • 2
  • h

    horia.ancas

    04/15/2018, 4:33 PM
    hey guys, I’m using graphql-yoga and prisma that is deployed to my own cluster and I’m running into some really bad latency issues. Each request is 5s+ on my frontend, but the curious thing is prisma itself is pretty fast when queried from the playground. Any ideas what could be wrong? I’m using prisma bindings in my resolvers
    h
    m
    • 3
    • 6
  • p

    pasa

    04/15/2018, 7:04 PM
    Hello everybody, I might need some advice. I followed @max's tutorial here: https://github.com/maxdarque/prisma-docker to set up a root server, which runs the mysql instance natively without docker. Besides that, the root server shall host my frontend, the prisma server and the graphql-yoga server. I know of the performance issues, this will probably create, but it's only for the beginning. Later on, I will probably hop on a dedicated AWS service for every server and the db. Now my issue: I created the docker container with docker-compose and connected to my db via the necessary credentials. Afterwards I created a subfolder within the directory with the docker-compose.yml by initializing the prisma project with prisma init. I deployed the prisma project to my created cluster, but even though I set up an external db for this, it still uses the (on deploy) freshly created default db, when I start the graphql server with yarn start. Any ideas, what could cause this? Thanks to everyone in advance!
  • l

    ldlework

    04/15/2018, 10:22 PM
    Hello. I've setup the advanced boilerplate from https://github.com/graphql-boilerplates/typescript-graphql-server which uses graphql-yoga. I'm attempting to use the playground to register a user and then query for
    me
    . However, I have no idea at all how to utilize the token that is provided from the login mutation when running any of the authentication requiring queries.
    a
    • 2
    • 2
  • j

    Jscott388

    04/15/2018, 11:21 PM
    Anyone have experience with aws lambda with prisma?
  • m

    Mike Clymer

    04/15/2018, 11:25 PM
    @ldlework In the playground you can add the token to the 'Authorization' HTTP header for your query requests. Take a look at this screen shot.
  • u

    user

    04/15/2018, 11:37 PM
    @Mike Clymer commented on @Mike Clymer’s file

    https://prisma.slack.com/files/UA5BPHAE6/FA79K776Z/playground_-_http___localhost_4000.jpg▾

    : @Idlework I am also making the assumption that you are using the getUserId(...) function provided in https://github.com/graphql-boilerplates/typescript-graphql-server/blob/master/advanced/src/utils.ts
  • l

    ldlework

    04/16/2018, 12:00 AM
    @Mike Clymer oh wow I did not even notice this pane at the bottom!
  • j

    Jscott388

    04/16/2018, 12:07 AM
    I am wanting to use aws lambda to run every 2 hours to fetch data and save it to database, any suggestion on this? I could have 1000 records to upsert at a time.
  • j

    Jscott388

    04/16/2018, 2:47 AM
    Any resources I could use for serverless with prisma?
  • g

    Glen

    04/16/2018, 2:50 AM
    https://docs.aws.amazon.com/lambda/latest/dg/with-scheduled-events.html
  • j

    Jscott388

    04/16/2018, 2:57 AM
    @glen Yeah i know about this but I am trying to figure out the best way to fetch my data and insert the data. I am doing a real estate site, so I am not sure if the lambda function will handle all that data.
    m
    • 2
    • 2
  • j

    Jscott388

    04/16/2018, 3:03 AM
    I can only fetch for 1500 records. I have to loop through several times to get the data, then I have to map the data to it's keys. But I don't think prisma does a batch write so I guess I have to run a loop to write each of the data.
  • m

    matty

    04/16/2018, 5:03 AM
    Hello, we had a strange function invocation that occurred around midnight UTC, but cannot find the logs for that function invocation anywhere
  • m

    matty

    04/16/2018, 5:03 AM
    Is this a known issue?
  • c

    Chris Felix

    04/16/2018, 7:02 AM
    Any idea why context.headers would be undefined in a custom directive? I’m using https://www.apollographql.com/docs/graphql-tools/schema-directives.html#Enforcing-access-permissions as an example
    g
    • 2
    • 3
12345...637Latest