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

    Waweru

    04/18/2018, 9:12 AM
    Here's the resolver function. I'm only getting the first item on the array. Is there something wrong with the for loop?
    -.js
  • w

    Waweru

    04/18/2018, 9:13 AM
    Someone please help.
  • i

    immanuelrosal

    04/18/2018, 9:27 AM
    @Waweru technically, you're telling the code to explicitly return the first item
  • i

    immanuelrosal

    04/18/2018, 9:29 AM
    Also, why is there a need to loop through the data and not just return customerData?
    w
    t
    • 3
    • 21
  • m

    mekwall

    04/18/2018, 10:01 AM
    My generated files never update. Do I need to do something for that to happen?
    n
    • 2
    • 12
  • v

    Vakrim

    04/18/2018, 11:25 AM
    hey, why there is https://www.npmjs.com/package/prisma-cli (@ v1.0.7) and https://www.npmjs.com/package/prisma (@ v1.6.2) ? Should there be some info that
    prisma-cli
    is outaded and you should migrate to
    prisma
    ?
    m
    • 2
    • 3
  • u

    user

    04/18/2018, 12:25 PM
    @tsdexter commented on @Waweru’s file https://prisma.slack.com/files/U8PB0QPHU/FA8Q3Q2N6/-.js: what does your
    console.log
    output?
    -.js
  • u

    user

    04/18/2018, 12:28 PM
    @tsdexter commented on @Waweru’s file https://prisma.slack.com/files/U8PB0QPHU/FA8Q3Q2N6/-.js: Oh, I see it. Looks like you're returning on the first iteration. But if
    customerData
    is already an array and you want an array, can't you just do:
    Copy code
    return await axios(`${BaseURL}/customers`)
    	.then(resp => resp.data);
    -.js
  • u

    user

    04/18/2018, 12:32 PM
    @Waweru commented on @Waweru’s file https://prisma.slack.com/files/U8PB0QPHU/FA8Q3Q2N6/-.js: I've tried that. Still getting null when I query on the GraphiQL.
    -.js
  • w

    Waweru

    04/18/2018, 1:53 PM
    should I know graphql before using apollo server and client?
    m
    • 2
    • 2
  • p

    Philippe

    04/18/2018, 1:58 PM
    Hi guys, I have a doubt about how I integrate Prisma with Auth0. - Frontend redirect to Auth0 login page, user do the auth - Auth0 redirect with the JWT token to Frontend - Frontend make a call to prisma with the JWT - Prisma receive the token and here is the question How the prisma server validate this JWT of auth0? Thanks guys!
    b
    l
    • 3
    • 16
  • m

    Mike

    04/18/2018, 3:11 PM
    I am able to deploy schema changes on the Prisma tutorial projects and have no issue creating/mutating with the playground on my work project, for some reason I get this error when trying to deploy changes to the schema with "Prisma Deploy"
  • m

    Mike

    04/18/2018, 3:11 PM
    Any help or explanation much appreciated
  • f

    fresh5447

    04/18/2018, 5:47 PM
    Quick question: I am using
    GraphCool Service
    . Is there a way for the simple api endpoint to handle a POST request sent it's way? If a resolver could listen to any events sent to the simple API endpoint, that would be ideal. Use Case: I have an application that will send events to graphcool using a Webhook. Or do I need to explore alternatives like
    graphql-yoga
    or even
    prisma
    , to expose some type of more traditional endpoint
    /api/webhook-to-post-to-graphcool
  • d

    dreamture

    04/18/2018, 7:57 PM
    Not sure where to ask. I need to automate a buying process in a site. I am using Chromless for this but I want to make sure that pages load as fast as possible. Any tips? Usually I'd use an extension that blocks loading images but I guess I can do more than that.. (plus headless chrome doesnt support extensions afaik)
  • l

    ldlework

    04/18/2018, 9:04 PM
    I'm not sure what this has to do with graphcool, but I recommend Puppeteer for that kind of work.
  • l

    ldlework

    04/18/2018, 9:04 PM
    Or Nightmare.js
  • l

    Lydia

    04/19/2018, 1:20 AM
    What would I need to update to switch from local (w/ docker) to self-hosted prisma-cluster in existing project?
    • 1
    • 1
  • d

    dreamture

    04/19/2018, 5:11 AM
    @ldlework https://github.com/graphcool/chromeless#help--community- That's why I joined this channel and asked here
  • l

    ldlework

    04/19/2018, 5:36 AM
    neat
  • g

    gsancho

    04/19/2018, 9:42 AM
    hi guys!! how to add directives to Querys and Mutations of ./generated/prisma.graphql??
  • a

    Adrián

    04/19/2018, 10:35 AM
    Delete_user_and_his_posts.txt
  • u

    user

    04/19/2018, 10:49 AM
    A file was commented on
  • t

    Tatsuyuki Ishi

    04/19/2018, 10:59 AM
    Your docs says that community apps must display the "Backend by Graphcool" badge, but where is the detailed guideline for that?
  • h

    harrisrobin

    04/19/2018, 12:50 PM
    @nilan doing:
    prisma export --export-path database/export
    yields ▸ Unknown flag --export-path prisma/1.6.3 (darwin-x64) node-v9.3.0 https://github.com/graphcool/prisma/blob/master/docs/1.0/04-Reference/05-Data-Import-%26-Export/02-Data-Export.md#data-export-with-the-cli
  • h

    harrisrobin

    04/19/2018, 12:53 PM
    nvm, i figured it out!
  • j

    jgonzalez.jaen

    04/19/2018, 1:06 PM
    Hello everybody.
  • j

    jgonzalez.jaen

    04/19/2018, 1:06 PM
    I'm trying to subscribe to graph.cool using plain websockets
  • j

    jgonzalez.jaen

    04/19/2018, 1:06 PM
    but I cannot find the way to specify the variables
  • j

    jgonzalez.jaen

    04/19/2018, 1:08 PM
    after successfully connecting to the websocket server, I send the following message
1...678...637Latest