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

    Philippe

    04/05/2018, 6:44 PM
    -.txt
  • x

    XobL

    04/06/2018, 4:31 AM
    ClientSide
    Copy code
    const wsClient = new SubscriptionClient(SUB_ENDPOINT, {
          reconnect: true,
          timeout: 30000, 
          connectionParams: {
       
             token : JSON.parse(localStorage.getItem('token')),
           
            
    
          }
        })
    ServerSide
    Copy code
    onConnect: (connectionParams, webSocket) => {
          if (connectionParams) {
           console.log( connectionParams)
    ..................................
    As soon as i refresh my client app, it always return me the last one, and not the new token after the login? Can someone explain it to me?
    n
    • 2
    • 1
  • s

    sunrising

    04/06/2018, 7:22 AM
    Hi, I am using graphcool with the graphic interface on the website as it was at the beginning, but I'm afraid that this is no longer the standard way to manage a project. Even because I feel quite limited by the webtask.io modules pool when it comes to functions. I don't even understand if i can use any library after the "conversion". can anybody help me about this?
  • q

    q666

    04/06/2018, 9:38 AM
    The tooling around graphql is quite big and it’s easy to get lost… do you now any tools/ways to easily seed a db? I’m working localy with the docker provided by graphcool-framework
    👍 1
    n
    • 2
    • 3
  • s

    shanth

    04/06/2018, 9:45 AM
    hi, I'm trying to use local mongodb or mlab endpoint with prismagraphql/prisma . is there any dockerfile config I can use to override db endpoint?
    n
    • 2
    • 1
  • i

    immanuelrosal

    04/06/2018, 10:04 AM
    @q666 lost on local setup as well
    👋 1
    n
    q
    • 3
    • 5
  • n

    ngeru

    04/06/2018, 10:50 AM
    I really like Graphcool...and I kinda want to use a django backend in my project....is here a way of using both of them in a single app??
  • i

    immanuelrosal

    04/06/2018, 10:59 AM
    @q666
    👍 2
  • i

    immanuelrosal

    04/06/2018, 11:00 AM
    Took me like 10 secs to setup. 😂
    🦜 4
  • m

    max

    04/06/2018, 11:24 AM
    Hey I'm trying to design a flexible data structure/schema. I've posted in the forum and would love to get the community's feedback. https://www.graph.cool/forum/t/flexible-schema-data-modeling/3081/1
  • m

    Moritz

    04/06/2018, 12:15 PM
    Hi, does anyone have a good read or an expert opinion on how and when Prisma or yoga does caching? Thanks?
  • m

    Michael Jones

    04/06/2018, 2:10 PM
    Not sure if I should post this on the forum or not, just let me know. Anyhow, one of the things I really loved about the old API was how I could grab an aggregation of a nested field. For instance, I could grab a list of users and then, for each user, I could grab the number of transactions that they have made. Now, all aggregate data has to be grabbed through a FieldConnection which seems a little bit more annoying. Is there a way to grab nested aggregate data now? Like, grab users with the UserConnection and then grab the transaction count from within? Am I am missing something or is that not possible with the new API? Thank You
    n
    • 2
    • 2
  • t

    thephilgray

    04/06/2018, 2:14 PM
    In the first example of the Prisma API docs Mutations section (https://www.prisma.io/docs/reference/prisma-api/mutations-ol0yuoz6go#overview ), if I want to createPost(), is there any way to connect it to an author if I'm not sure whether the author exists or not? It seems like I would want to use an upsert mutation, but the docs say that's only available in an update mutation. Is it possible to nest an update mutation inside of a create mutation?
    n
    • 2
    • 15
  • m

    Michael Jones

    04/06/2018, 5:01 PM
    Once inner connection fields get implemented, will they only be accessible from root connection fields? For instance, would we be able to do something like
    users{ postsConnection { ... } }
    ?
    n
    • 2
    • 4
  • s

    steveb

    04/06/2018, 5:29 PM
    has anyone ever used
    graphcool/graphql-request
    from inside a lambda?
    n
    • 2
    • 8
  • h

    horia.ancas

    04/06/2018, 5:59 PM
    hey guys, anybody using typescript & graphql?
  • h

    horia.ancas

    04/06/2018, 6:00 PM
    I’m curious how do you guys handle
    .graphql
    files and what you use to transpile
    .ts
    files
  • r

    rehf27

    04/06/2018, 6:06 PM
    when my graphql server talks with the prisma service does it use the PRIVATE_KEY in the .prisma/config.yml? or is the PRIVATE_KEY only use with the CLI?
    n
    • 2
    • 4
  • r

    rehf27

    04/06/2018, 6:17 PM
    @horia.ancas I started with he advanced typescript boilerplate - it uses ts-node
    h
    n
    • 3
    • 7
  • m

    maarteNNNN

    04/06/2018, 7:39 PM
    @nilan I'm interested in participating in the MongoDB connector 🙂
    🎉 2
  • c

    cory

    04/06/2018, 9:32 PM
  • c

    cory

    04/06/2018, 9:32 PM
    (1st row fine, 2nd/3rd rows don’t load)
  • m

    Marc Qualie

    04/06/2018, 11:24 PM
    I just updated the
    types.graphql
    and deployed, but now I’m getting some odd issues with the field looking like it’s missing.. but only on some records, almost like the data is sharded and some shards don’t have the new schema I’ve seen this a few times in the past (November) and someone at Graphcool had to resync something internally, but wondering if anyone has hit this and knows a way to trigger that sync, or if anyone from graphcool is here to do that? Intercom bubble doesn’t seem to be in the app anymore
    n
    • 2
    • 1
  • m

    McArthur

    04/07/2018, 12:16 AM
    Does anyone know of a way to get ahold of a prisma person after hours? I have an urgent production issue right now I could really use some help with.
  • r

    Russ Callahan

    04/07/2018, 3:08 AM
    I’m not sure I have the right idea about what prisma does. I thought I could take an existing MySQL database and either connect to it with docker (done the example but it’s a separate db) or import a sql file into the prisma-db. I’m not finding the documentation for how to accomplish this.
    s
    • 2
    • 1
  • n

    Nick Luger

    04/07/2018, 7:41 AM
    Is there a fast way to clear all nodes in DB after every integration test?
    n
    • 2
    • 1
  • h

    horia.ancas

    04/07/2018, 8:07 AM
    hey guys, any idea why I get this error when I run my own server that uses Prisma?
    Copy code
    GraphQLError: Syntax Error GraphQL request (55:3) Expected Name, found String
    
    54: type BatchPayload {
    55:   """
          ^
    56:   The number of nodes that have been affected by the Batch operation.
  • h

    horia.ancas

    04/07/2018, 8:26 AM
    it has something to do with the comment syntax inside prisma.graphql
  • h

    horia.ancas

    04/07/2018, 8:28 AM
    fixed by updating to the latest version of
    graphql
    👍 1
  • m

    michal.tomsia

    04/07/2018, 12:28 PM
    hey guys, is there any way to return
    edge
    from mutation without losing ability to pass an info to the
    ctx.db.mutation
    ? I'm trying to integrate my server with Relay Modern
1...630631632...637Latest