https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • r

    renatobenks

    01/22/2018, 3:28 PM
    then, my package is added in
    /node_modules
  • r

    renatobenks

    01/22/2018, 3:28 PM
    but, I should compile it for can to work, but is not
  • r

    renatobenks

    01/22/2018, 3:29 PM
    anyone?
  • r

    renatobenks

    01/22/2018, 3:30 PM
    here is my steps: 1. Install package from fork 2.
    cd node_modules/graphql-tools && npm i && npm run compile
    3. Try use my fork, and so crashes.
  • p

    picosam

    01/22/2018, 3:39 PM
    Is there any way to hook Prisma into an existing (running)
    nodemon
    ?
    d
    • 2
    • 12
  • m

    Moritz

    01/22/2018, 4:03 PM
    Hi, how does Prisma handle 1-1 relationships on the User node? When I change the User Model from the authentication sample (https://github.com/graphcool/prisma/tree/master/examples/auth) to take only one post (change posts: [Post!]! to posts: Post!) I get an error when i create a new user saying i need to supply the post. What would be my strategy for a 1-1 relation like that? I cant create the post first, because it requires the user id, but i cant create the user because it needs the post. any ideas here? Or am I misunderstanding something?
    m
    • 2
    • 12
  • m

    max

    01/22/2018, 4:22 PM
    do people have any thoughts on running your own graphql-yoga server with prisma backend vs. graphcool-framework?
  • m

    max

    01/22/2018, 4:33 PM
    anyone with experience deploying graphql-yoga to AWS Lamdba?
  • u

    user

    01/22/2018, 5:08 PM
    @eele commented on @vistriter’s file

    https://prisma.slack.com/files/U8JPGG681/F8VT8DHME/screen_shot_2561-01-22_at_22.03.35.png▾

    : Shouldn't you use the subscription api endpoint instead of the simple endpoint?
  • j

    JR Oakes

    01/22/2018, 5:21 PM
    Really nice job on Chromeless. I am an SEO and was thinking of compiling what Google uses to crawl (Chrome 41) and implementing via serverless chrome as Google's tools for testing what they "see" are quite limited for debugging. Wanted to see if that was a waste of time before I got started.
  • e

    ehodges

    01/22/2018, 5:41 PM
    I’m working on the Hackernews clone tutorial. I’m getting this error: `Server is running on http://localhost:4000 Error: Invalid Prisma endpoint provided: __PRISMA_ENDPOINT__ at new Prisma (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/prisma-binding/dist/Prisma.js7519) at GraphQLServer.context (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/src/index.js209) at GraphQLServer.<anonymous> (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js19151) at step (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js4023) at Object.next (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js2153) at /Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js1571 at new Promise (<anonymous>) at __awaiter (/Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js1112) at /Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/graphql-yoga/dist/src/index.js184108 at /Users/erichodges/Documents/Coding/graphcool/hackernews-react-apollo/server/node_modules/apollo-server-core/dist/graphqlOptions.js5240 ^C ➜ server prisma info Service Name: hackernews-graphql-js dev (cluster:
    prisma-us1
    ) HTTP: https://us1.prisma.sh/public-rosehead-346/hackernews-graphql-js/dev Websocket: wss://us1.prisma.sh/public-rosehead-346/hackernews-graphql-js/dev` I checked the endpoint, and it’s correct in the index.js
  • r

    rick

    01/22/2018, 6:29 PM
    what’s the best way to reset data with Prisma? I’m trying to get rid of all the
    Posts
    I’ve created but when I run
    prisma reset
    I can still see the data when I query
    Copy code
    {
      posts {
        id
      }
    }
    h
    • 2
    • 3
  • h

    harrisrobin

    01/22/2018, 6:44 PM
    Still a work in progress, but building a client based on the prisma airbnb clone example: https://entr-www.netlify.com/?AND%5B0%5D%5Bpricing%5D%5BperHour_gte%5D=435&amp;AND%5B1%5D%5Bpricing%5D%5BperHour_lte%5D=1287 Edit: you will notice that the URL is basically the arguments for the prisma query lol
    👍 1
    p
    • 2
    • 2
  • h

    harrisrobin

    01/22/2018, 6:45 PM
    I did notice that any custom resolver i implement slows down my queries tremendously, and i am assuming this is because of the shared clusters. I guess the best option would be to host on DO until Prisma Cloud is released i believe
    • 1
    • 1
  • t

    tekk

    01/22/2018, 7:39 PM
    Is it possible to see logs for all queries/etc against my graph.cool endpoint(s)? Including IP addresses or something similar?
  • c

    cam

    01/22/2018, 7:53 PM
    hey all! just wanted to come in and throw my support behind Prisma. It's too early for us to use at work, but I'm going to be hacking on it nights and looking forward to seeing it develop 👍
    fast parrot 2
    👍 3
    prisma 6
    h
    r
    d
    • 4
    • 6
  • m

    matic

    01/22/2018, 8:11 PM
    Hey 👋 Does anyone know how I can add
    .env
    to
    graphcool-framework
    deployment?
    m
    • 2
    • 2
  • e

    ehodges

    01/22/2018, 9:19 PM
    Now I’m working on the Prisma Auth example. I’m getting this error:
    Copy code
    Server is running on <http://localhost:4000>
    [Network error]: FetchError: request to <http://localhost:60000/myapp/dev> failed, reason: connect ECONNREFUSED 127.0.0.1:60000
    Error: request to <http://localhost:60000/myapp/dev> failed, reason: connect ECONNREFUSED 127.0.0.1:60000
        at Object.checkResultAndHandleErrors (/Users/erichodges/Documents/Coding/graphcool/auth/node_modules/graphql-tools/dist/stitching/errors.js:69:36)
        at Object.<anonymous> (/Users/erichodges/Documents/Coding/graphcool/auth/node_modules/graphql-tools/dist/stitching/delegateToSchema.js:92:52)
        at step (/Users/erichodges/Documents/Coding/graphcool/auth/node_modules/graphql-tools/dist/stitching/delegateToSchema.js:40:23)
        at Object.next (/Users/erichodges/Documents/Coding/graphcool/auth/node_modules/graphql-tools/dist/stitching/delegateToSchema.js:21:53)
        at fulfilled (/Users/erichodges/Documents/Coding/graphcool/auth/node_modules/graphql-tools/dist/stitching/delegateToSchema.js:12:58)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:188:7)
    h
    • 2
    • 27
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    @ehodges that just means there is something else using your 6000 port
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    run
    killall node
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    and start the server again
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    try that
  • h

    harmony

    01/22/2018, 9:20 PM
    it means nothing is running on 60000
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    yes
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    ah
  • h

    harrisrobin

    01/22/2018, 9:20 PM
    sorry lol, the opposite. @harmony is right
  • e

    ehodges

    01/22/2018, 9:21 PM
    ok, so what do I do?
  • e

    ehodges

    01/22/2018, 9:21 PM
    is this a docker issue?
  • h

    harrisrobin

    01/22/2018, 9:21 PM
    we don't have enough information to help you out with that
    e
    • 2
    • 1
  • e

    ehodges

    01/22/2018, 10:20 PM
    Prisma Auth example: I made additions to the datamodel on the user type. I ran prisma deploy and the console said the new fields were made. I reloaded the playground and the changes are not in the schema. What am I missing? More mystery: I get the new additions to the schema in the desktop playground, along with a bunch of other things that are not in the web based version...except the signup mutation. What's up with that?
    h
    • 2
    • 7
1...535536537...637Latest