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

    eugenistoc

    03/26/2018, 8:43 PM
    Hey, is there a way to set permissions that apply only during signup? For example, when creating a
    User
    I want to allow everyone to be able to create a
    Profile
    , however, I don’t want everyone to create a
    Profile
    directly, only if its done through the
    createUser
    query. What is a pattern for dealing with workflow permissions like that?
    d
    • 2
    • 6
  • m

    Michael Jones

    03/26/2018, 9:47 PM
    Hey, I have been working at this for a few hours now and have made no progress. I am trying to combine my Prisma Schema and my `Graphql Yoga`'s schema. How would I go about generating a new file from these two schemas so that I can use Relay Compiler? Thank you!
    n
    • 2
    • 8
  • k

    kdn

    03/26/2018, 10:42 PM
    Question about authentication for subscriptions using Prisma. When I test a subscription using the playground, I send an Authorization header and it comes through but when the same request is sent through apollo on android no header comes through. Has any one had any issues like this or have any insight into what is going on?
    😖 1
    d
    a
    • 3
    • 9
  • r

    rion

    03/27/2018, 12:25 AM
    Anyone know when Postgres support lands?
  • j

    jeremie-stratumn

    03/27/2018, 8:16 AM
    Hello, thanks for your product, it's really cool. Here's a question related to `graphcool-lib`: Using the following resolver:
    Copy code
    import { fromEvent } from "graphcool-lib";
    
    export default async event => {
      const lib = fromEvent(event);
      const client = lib.api("simple/v1");
    
      const res = client.request(
        `mutation {
      deleteUser(id: "cjf9dqjab01da0161jl2q08s1"){
        id
        name
      }
    }`
      );
    
      return {
        data: res
      };
    };
    does not yield any data in
    res
    . I can see in the logs that
    res = {}
    Is that expected?
  • d

    dohomi

    03/27/2018, 8:17 AM
    await
    is missing @jeremie-stratumn
    👍 1
  • j

    jeremie-stratumn

    03/27/2018, 8:18 AM
    arg!
  • j

    jeremie-stratumn

    03/27/2018, 8:18 AM
    my mistake
  • j

    jeremie-stratumn

    03/27/2018, 8:18 AM
    thanks
  • d

    dohomi

    03/27/2018, 8:18 AM
    👍
  • d

    davidyoung

    03/27/2018, 9:34 AM
    Hi everyone, trying to wrap my head around this, I'm running an event driven lambda function, and would like to connect to the prisma database directly instead of going through the application schema. I can generate a token using
    prisma token
    but will this expire over time? What should I use to authenticate to the prisma graphql endpoint in my function
  • d

    davidyoung

    03/27/2018, 10:04 AM
    Is there a way to create a permanent access token to connect to prisma or not?
    p
    • 2
    • 1
  • p

    pasa

    03/27/2018, 10:35 AM
    Hey there, is there a way of setting a field automatically with an unique alphanumerical string on creation? BTW I'm using Graphcool BAS.
    • 1
    • 1
  • p

    pasa

    03/27/2018, 10:36 AM
    What I need is a string like the ID of a node, but on a second field, that is also unique.
  • f

    fabien0102

    03/27/2018, 12:14 PM
    Hello everybody, I just want to open a discussion about versionning with GraphQL design -> https://www.graph.cool/forum/t/versionning-a-graphapi/2968 If someone have feedback/suggestion/ideas, just to share our best practices on this topic
  • b

    Bro

    03/27/2018, 3:49 PM
    Prisma provides transactional guarantees for nested mutations. If you wanted to do something like transfer 5 coins from player1 to player2, if player1 has 5+ coins, how would you suggest structuring this?
    h
    • 2
    • 11
  • e

    elmir

    03/27/2018, 4:11 PM
    Anyone run into this issue ever ?
  • e

    elmir

    03/27/2018, 4:11 PM
    On version
    Copy code
    graphcool/0.9.2 (darwin-x64) node-v9.5.0
  • w

    woss

    03/27/2018, 4:21 PM
    hi there. 🙂 i was evaluating Prisma service and deleted both of my workspaces. That broke the console 😞 sorry for that
  • w

    woss

    03/27/2018, 4:22 PM
    I was creating dev env for Aurora binding which would be a paid service. can you please fix this so i can continue evaluating. quick fix is to create dummy workspace 😛
    n
    • 2
    • 5
  • l

    lawjolla

    03/27/2018, 4:37 PM
    Can someone who understands the mess that is AWS/RDS square this round hole? RDS says I'm using almost 20gigs. SQL tells a different story. This was connected to a Prisma cluster
    m
    • 2
    • 9
  • l

    lawjolla

    03/27/2018, 4:37 PM
    https://cl.ly/1C3z0e2z3S1n
    d
    h
    • 3
    • 11
  • l

    lawjolla

    03/27/2018, 4:38 PM
    https://cl.ly/2Q3Z0y41222a
    b
    • 2
    • 2
  • w

    wesbos

    03/27/2018, 5:36 PM
    hey folks - is querying an enum field the same as any other field?
  • h

    harmony

    03/27/2018, 5:38 PM
    yes
  • h

    harmony

    03/27/2018, 5:38 PM
    you just put the value
  • h

    harmony

    03/27/2018, 5:38 PM
    you can try it in the playground
  • w

    wesbos

    03/27/2018, 5:38 PM
    hmm okay thanks - having some trouble with it saying it can’t query that field
    h
    l
    • 3
    • 13
  • w

    wesbos

    03/27/2018, 5:38 PM
    maybe my schema doesn’t have it
  • j

    jay

    03/27/2018, 6:09 PM
    hello
1...622623624...637Latest