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

    Khoa Huynh

    05/11/2018, 8:13 PM
    Hi guys, are there ways we can do a transaction for multiple mutations? @nilan
    d
    n
    • 3
    • 4
  • d

    danielrasmuson

    05/11/2018, 8:18 PM
    I'm working on deploying prisma, hitting a problem passing in the environment variables. Any advice? https://stackoverflow.com/questions/50299617/set-multiline-environment-variable-with-dockerfile
  • h

    HarryC

    05/11/2018, 9:13 PM
    Hi everyone, Iet's say I have an example with type User and Group that are related to each other. Is there a way to create a new User and connect to Group in the same mutation? Right now, I have two separate queries: 1) Create User 2) Connect the two nodes
    s
    • 2
    • 6
  • m

    mehdyouras

    05/11/2018, 10:10 PM
    Hello everyone, i have an issue with a resolver doing some weird things with async and wait
  • m

    mehdyouras

    05/11/2018, 10:11 PM
    Resolver
    -.ts
  • m

    mehdyouras

    05/11/2018, 10:12 PM
    -.ts
  • m

    mehdyouras

    05/11/2018, 10:14 PM
    The issue here is that i want to compute the final product price (itemPrice) with the extras before making the mutation. But it seems that the mutation doesn't wait for the queries to be resolved
  • m

    markl

    05/11/2018, 10:20 PM
    is there a best practice pattern for row level security with prisma? say i have a type Book that has books owned by a User... how can I combine the nice features of prisma like the BookWhereInput input type with a filter for "only Book owned by User" when exposing an API?
    n
    • 2
    • 1
  • k

    Khoa Huynh

    05/11/2018, 10:44 PM
    guys could we do a query with multiple conditions like this const followee = await ctx.db.query.userFollows([{ where: { Followee: ['5abfc1a289d5891f3c875c6a', '5ac6bcd6548da4844d5ae774'], IsActive: true } }], info); @nilan
    n
    • 2
    • 1
  • m

    markl

    05/11/2018, 10:59 PM
    @Khoa Huynh try
    { where: { Followee_in: ['xxx', 'yyy'] } }
  • k

    Khoa Huynh

    05/11/2018, 10:59 PM
    Hi markl I did it thanks. it works
  • c

    chasm

    05/11/2018, 11:05 PM
    Quick question. I'm following the tutorials and have done
    prisma init
    using the local docker. I do
    prisma deploy
    and it uploads the schema fine, but the generated
    prisma.graphql
    file is neither generated nor updated. This stopped working on an older app after I upgraded from 1.6 to the latest. But now I can't make it work even on a newly created app. The database end is fine -- works like a charm. I can access it through the playground database schema perfectly. But without that
    prisma.graphql
    file I can't do anything through the app schema. Has anyone else run into this problem with 1.8? Is there something really obvious I'm missing? Am I right in thinking that
    prisma deploy
    should regenerate
    prisma.graphql
    ?
    m
    • 2
    • 22
  • i

    Isaiah Grey

    05/12/2018, 1:32 AM
    How can I upgrade my account plan from development to Standard???
  • m

    Mr.niko.la

    05/12/2018, 2:22 AM
    anyone know how to setup up the up aws credentials ? i created a access id and secret key on the console created the .aws/credentails file and places them there
  • m

    Mr.niko.la

    05/12/2018, 2:23 AM
    but nxp up is giving a credential Error: Cannot find credentials, visit https://up.docs.apex.sh/#aws_credentials for help.
  • c

    chakrihacker

    05/12/2018, 7:42 AM
    Hello cool devs, how can I deploy prisma locally
    k
    • 2
    • 3
  • c

    chakrihacker

    05/12/2018, 7:42 AM
    I have docker installed, do I need to install mysql too
  • k

    Kevin S

    05/12/2018, 7:49 AM
    Hey, I can't sign in to console.graph.cool?
  • k

    Kevin S

    05/12/2018, 7:49 AM
    It just takes me back to the login screen
  • k

    Kevin S

    05/12/2018, 7:49 AM
    Help!
  • c

    chakrihacker

    05/12/2018, 7:50 AM
    @Kevin S wait for a moment, it will login and redirect
  • k

    Kevin S

    05/12/2018, 7:50 AM
    It doesn't. It just goes right back to the signup page
  • k

    Kevin S

    05/12/2018, 7:52 AM
    Hm.
  • k

    Kevin S

    05/12/2018, 7:52 AM
    I did it like 5 times, and it worked on the 5th try
  • p

    panzupa

    05/12/2018, 12:35 PM
    hi there. I want to create PAT (PERMANENT AUTH TOKENS) on console it is said to use CLI.
    gc help
    does not say anything about tokens. How to do it?
  • p

    panzupa

    05/12/2018, 12:42 PM
    nevermind I found it, would be nice if you could update web console to point to https://www.graph.cool/docs/reference/auth/authentication/authentication-tokens-eip7ahqu5o
  • m

    Maxime Scibetta

    05/12/2018, 1:01 PM
    Firefox can not establish a connection with the server to the address <wss://subscriptions.graph.cool/v1/__PROJECT_ID__>
    k
    v
    • 3
    • 2
  • c

    codebeast

    05/12/2018, 7:30 PM
    Following the tutorial below (which I think needs to be updated to use Prisma 1.8), does running
    prisma deploy
    still download the generated schema?
    n
    • 2
    • 2
  • a

    Arnab

    05/12/2018, 8:29 PM
    Would this be a good place to ask why node crashes when using
    import
    ? I am running node 10 and trying to follow the "zero to graphql" tutorial from like 2016 or something
    n
    m
    • 3
    • 8
  • n

    nhuesmann

    05/12/2018, 11:13 PM
    Hi guys! One of the fields on a custom type I have is a list of strings. I've defined it as
    [String!]!
    . When I try to actually pass an array of strings when creating my type, I get an error
    Field "2" is not defined by type GameCreatedescriptionInput at value.description
    . Is it possible to store an array of scalar types?
    👋 1
1...272829...637Latest