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

    veksen

    01/29/2018, 1:45 AM
    having the hardest time here: trying to setup my friend to use the same backend schema, cloning our repo, when he's trying to set himself up with a playground and prisma dev cluster, his queries are erroring with :
    Copy code
    [Network error]: Error: Server response was missing for query 'null'.
    Error: Server response was missing for query 'null'.
        at Object.checkResultAndHandleErrors (C:\novartem\<http://novartem.com|novartem.com>\new_marketplace_staging\marketplace-backend\node_modules\graphql-tools\dist\stitching\errors.js:69:36)
        at Object.<anonymous> (C:\novartem\<http://novartem.com|novartem.com>\new_marketplace_staging\marketplace-backend\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:92:52)
        at step (C:\novartem\<http://novartem.com|novartem.com>\new_marketplace_staging\marketplace-backend\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:40:23)
        at Object.next (C:\novartem\<http://novartem.com|novartem.com>\new_marketplace_staging\marketplace-backend\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:21:53)
        at fulfilled (C:\novartem\<http://novartem.com|novartem.com>\new_marketplace_staging\marketplace-backend\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:12:58)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:160:7)
  • v

    veksen

    01/29/2018, 1:46 AM
    (he's using his own endpoint - he created a Prisma account and put his endpoint in his .env file)
  • v

    veksen

    01/29/2018, 1:47 AM
    Copy code
    PRISMA_STAGE="dev"
    PRISMA_ENDPOINT="<https://us1.prisma.sh/backend/dev>"
    PRISMA_CLUSTER="public-phantombat-381/prisma-us1"
    PRISMA_SECRET="mysecret123"
    APP_SECRET="jwtsecret123"
  • v

    veksen

    01/29/2018, 1:48 AM
    on the other hand, I destroyed my setup, attempt to debug his: I did
    yarn prisma delete
    , and now getting an error when running `yarn prisma deploy`:
    Copy code
    Checking, if schema file changed !
     ▸    Mutation fields must be an object with field names as keys or a function which returns such an object.
  • d

    diit

    01/29/2018, 2:51 AM
    Any experience deploying a local project to one of the public clusters?
    n
    • 2
    • 1
  • j

    johnvalustik

    01/29/2018, 3:17 AM
    Hi guys, I struggle to use prisma with docker locally when I eject docker-compose.yml Any guidance/documentation on this topic available? Thanks a lot!
    n
    c
    • 3
    • 3
  • f

    Fi1osof

    01/29/2018, 4:04 AM
    Is this OK prisma send multiple identical subscriptions on CREATE?
  • f

    Fi1osof

    01/29/2018, 4:04 AM
    http://joxi.ru/p27R6EGi0Jx0Bm
  • f

    Fi1osof

    01/29/2018, 5:17 AM
    It looks like a bug https://github.com/graphcool/prisma/issues/1763
  • v

    varun

    01/29/2018, 5:42 AM
    hai all if any possible graphcool mutation api calling with html page
    n
    • 2
    • 1
  • r

    ricardoNava

    01/29/2018, 6:56 AM
    Hey guys, I'm trying to wrap a REST API im working on console.graph.cool, I already have my resolver function working, but when I use the playground I don't know how to query the REST API instead of my own Database (hope it makes sense)
    n
    • 2
    • 1
  • s

    Stef

    01/29/2018, 7:44 AM
    Webhooks question. I’ve a slow-running report that I generate and I’ve made a Google Cloud Function to do that work for me. If I use a resolver and call that via a webhook, does this cause all sorts of trouble because it locks up a process waiting for the response? Each request is in the 5 to 50 second range.
    n
    • 2
    • 4
  • a

    aazlant

    01/29/2018, 9:00 AM
    could I talk with somebody about how to best copy local data scraped from a website into graphql?
    n
    • 2
    • 2
  • a

    Agnes

    01/29/2018, 10:16 AM
    What do I have to do to start using MS SQL(if possible?) with Prisma?
    n
    • 2
    • 1
  • c

    congy

    01/29/2018, 11:18 AM
    I want to use graphcool instead of Prisma. What is the best way to start? Are the templates from https://github.com/graphcool/templates still up to date? And, when will graphcool itself get the most recent features from Prisma? Is Prisma preferred now by the graphcool team? @nilan Thanks!
    👍 1
    s
    • 2
    • 2
  • r

    Rory Kelly

    01/29/2018, 11:53 AM
    Any idea how I could make the feed list in Users have 0 duplicates without making the post in feed Item @unique?
    Untitled.txt
  • u

    user

    01/29/2018, 11:54 AM
    @Rory Kelly commented on @Rory Kelly’s file https://prisma.slack.com/files/U7RRH2MDZ/F916JSQ5D/Untitled.txt: The best i can come up with is appending userId and postId and creating a unique field from that.
    Untitled.txt
  • v

    Victor Bianchi

    01/29/2018, 1:05 PM
    I'm running
    graphql prepare
    but I'm getting this error
    Cannot find module 'bindings-ts'
  • v

    Victor Bianchi

    01/29/2018, 1:06 PM
    Does anyone know what this error means?
    s
    a
    • 3
    • 7
  • c

    congy

    01/29/2018, 1:48 PM
    Well, our higher level management just decided to abandon graphcool altogether. We've been happy with Graphcool BaaS. But current situation doesn't guarantee us anything. Wish u good luck! Will come back in the future to see if the graphcool project stabilized and is production ready!
  • q

    qsys

    01/29/2018, 2:08 PM
    I'm trying to find out how to secure a graph.cool endpoint properly. It shouldn't be possible that anyone can even read the db, so one should set all access to at least authenticated. This works fine with users authenticating e.g. via auth0. What if I have an endpoint talking to graph.cool, how can I secure it, by: 1. adding an IP whitelist 2. authentication/token?
    p
    • 2
    • 5
  • p

    patrick_madx

    01/29/2018, 2:19 PM
    I'm having a very specific prisma use case. My user model has a
    token
    field. Randomly generated at the server when the user is created. It has to be
    token: String! @unique
    . When I create a user via another model (e.g. Company). I would like to set the token field server side. How can I achieve this without copy-ing all the possible ways to create a user in my own
    schema.graphql
    ?
  • q

    qsys

    01/29/2018, 2:36 PM
    another question: in the permission system, one can choose for 'authenticated'. When integrated with auth0 (or JWT in general), what does authenticated check? valid token, that's the minimum. But what about: JWT still valid (the
    exp
    field)? email verified? other fields? (I've had similar questions a few times already, and it's really a pitty that the payload of the http
    Authorization
    header is not exposed in the permission query system... it would make life with graphcool soooo much more logic)
  • q

    qsys

    01/29/2018, 2:37 PM
    (I need to split profile data between graphcool and auth0, to make it work properly, and again, no way of checking if the email is verified in the graphcool permission query system, to my knowledge)
  • q

    qsys

    01/29/2018, 2:46 PM
    design question: context: an organization wants to have a user mgmt system in their intranet. This is the flow 1. admins add which users, identified by unique email addresses, are eligible to login - they add them to their user mgmt 2. admins add roles to each user 3. users login with google/FB or register in the app of the organization 4. only users with a verified email can access (some parts - depending on their roles) the application problem: using auth0 integration in graphcool, this seems impossible: admins can't add user profiles if they don't know the
    auth0Id
    . Since they first want to add eligible addresses before people can login, it's impossible for them to know this
    auth0Id
    . Admins don't want to wait for users to login first, since that isn't very user friendly.
  • m

    Maxime Scibetta

    01/29/2018, 4:00 PM
    Hi all, I try to set my prisma environment with node boilerplate-advanced but when i try
    yarn start
    I've this issue
    Copy code
    Maxime SCIBETTA@DESKTOP-Q30836P MINGW64 ~/Documents/s-cool
    $ yarn start
    yarn start v0.21.3
    $ nodemon -e js,graphql -x node -r dotenv/config src/index.js
    [nodemon] 1.14.11
    [nodemon] to restart at any time, enter `rs`
    [nodemon] watching: *.*
    [nodemon] starting `node -r dotenv/config src/index.js`
    events.js:183
          throw er; // Unhandled 'error' event
          ^
    
    Error: listen EADDRINUSE :::4000
        at Object._errnoException (util.js:1022:11)
        at _exceptionWithHostPort (util.js:1044:20)
        at Server.setupListenHandle [as _listen2] (net.js:1351:14)
        at listenInCluster (net.js:1392:12)
        at Server.listen (net.js:1476:7)
        at C:\Users\Maxime SCIBETTA\Documents\s-cool\node_modules\graphql-yoga\dist\src\index.js:241:34
        at new Promise (<anonymous>)
        at GraphQLServer.start (C:\Users\Maxime SCIBETTA\Documents\s-cool\node_modules\graphql-yoga\dist\src\index.js:232:16)
        at Object.<anonymous> (C:\Users\Maxime SCIBETTA\Documents\s-cool\src\index.js:20:8)
        at Module._compile (module.js:643:30)
    [nodemon] app crashed - waiting for file changes before starting...
    e
    a
    n
    • 4
    • 6
  • v

    Victor Bianchi

    01/29/2018, 4:46 PM
    How can I override a type using graphql-import? I'm trying to redeclare the type, but the type is just ignored.
    a
    • 2
    • 9
  • p

    patrick_madx

    01/29/2018, 4:50 PM
    Anyone knows how to re-seed after
    prisma reset
    ?
  • m

    Maxime Scibetta

    01/29/2018, 6:14 PM
    How i can acces to console.graph/cool database with prisma like this on graphcool

    https://puu.sh/zchNX/04891c4d65.png▾

  • h

    harmony

    01/29/2018, 6:16 PM
    you can't
1...549550551...637Latest