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

    onePunchMan

    11/21/2018, 9:02 PM
    hmm...which means that I have to alter my database to be able to use prisma 😞
    m
    d
    • 3
    • 5
  • m

    Michael

    11/21/2018, 9:03 PM
    I have an existing database with a join table that has meta-information. (eg. a column that is not related to another table) How can I get the is data when I query the other @related fields that are related to different tables?
  • m

    merott

    11/21/2018, 9:46 PM
    Hey all! I’m new to Prisma. I was an avid fan of Graphcool last year, but a lot has changed since! I’m seeing something strange with code generated by
    graphqlgen
    , and it may or may not be a bug… Not sure if the forum would be a better place to discuss it, but here I go… If I have a mutation like this:
    Copy code
    type Mutation {
      updateUser(x: [String!]!, y: [String!], z: String): User!
    }
    The generated interface for the mutation variables,
    ArgsUpdateUser
    , looks like this:
    Copy code
    export interface ArgsUpdateUser {
      x: string[];
      y: string[];
      z: string | null;
    }
    I would expect that
    y
    should be typed as
    string[] | null
    , but it’s just `string[]`… Is that expected behaviour?
  • l

    Lobo

    11/21/2018, 9:58 PM
    hi guys 🙂 I have a question. in one of my queries, I want to work with the data gotten from database before returning the query. I want to return some custom fields. I haven't found anything in the docs any hint?
  • a

    Alex

    11/21/2018, 11:30 PM
    is anyone using prisma on apollo server 2 already?
    m
    i
    n
    • 4
    • 36
  • b

    Brent

    11/22/2018, 12:26 AM
    Has anyone been able to deploy prisma w/ aws fargate? The template they have in the git repo seems to error out
    s
    • 2
    • 2
  • h

    hinsxd

    11/22/2018, 3:13 AM
    Hi there. On a prisma server, how to you set regular Postgresql routine? Should I leave the prisma server alone, and use a node script with prisma-client imported, along with my graphql server?
  • k

    kyleshevlin

    11/22/2018, 4:30 AM
    Has anyone ever thought to make a #help channel? Feel like this channel gets burdened with most of that need.
    n
    • 2
    • 3
  • t

    tylim

    11/22/2018, 8:46 AM
    hello guys, what kind of datamodel should i define if i want to store chat data?
  • p

    pllumh

    11/22/2018, 9:02 AM
    Hello there. I've created a Prisma Server on Heroku using the wizard that prisma offers... In the beginning ( around 2 months ago ), i had problems with subscriptions not working but it seems like now they magically started working... My questions though is, how do I update the server ? I can see the servers deployed by Prisma are on version 1.21beta-1 .. but the server i setup 2 months ago is 1.11beta ..
  • p

    pllumh

    11/22/2018, 9:26 AM
    Found it here: https://github.com/prisma/prisma-cloud-feedback/issues/202 .. trying now
  • g

    Gorodov Maksim

    11/22/2018, 10:17 AM
    Cannot login to app.prisma.io using GitHub, what's wrong?
    a
    • 2
    • 3
  • g

    Gorodov Maksim

    11/22/2018, 10:25 AM
    In previous versions of prisma I could define models in datamodel.graphql and then import them into schema.graphql but now I cannot import them and have to define them the second time right in the schema.graphql, why?
    n
    • 2
    • 8
  • l

    Lobo

    11/22/2018, 10:59 AM
    hi guys 🙂 I have a question. in one of my queries, I want to work with the data gotten from database before returning the query. I want to return some custom fields. I haven't found anything in the docs any hint?
    e
    n
    n
    • 4
    • 7
  • g

    Gorodov Maksim

    11/22/2018, 1:24 PM
    By the way, what is the difference between using
    datamodel.graphql
    and
    datamodel.prisma
    ?
    .graphql
    has a nice code highlighting but
    .prisma
    does not (well, maybe there is a plugin for Webstorm, but I don't know).
    n
    a
    • 3
    • 10
  • p

    pllumh

    11/22/2018, 1:56 PM
    Trying to push the prisma docker image to heroku, following the steps from the above link i posted... does anyone know why I dont get the
    heroku container:release
    command ??
  • p

    pllumh

    11/22/2018, 2:33 PM
    Fixed .. old version of heroku cli installed
  • d

    danlucraft

    11/22/2018, 3:31 PM
    Does Prisma support transactions?
    n
    j
    • 3
    • 11
  • n

    nuno

    11/22/2018, 5:34 PM
    Could
    prisma generate
    also generate the Prisma Bindings?
    n
    • 2
    • 5
  • y

    yantakus

    11/22/2018, 7:38 PM
    What does these errors:
    GraphQL error: There are too many concurrent queries for this service.
    GraphQL error: The call to the group [yan-takushevich-4a2363~server@dev] timed out.
    mean? Everything worked just fine for me before, today I can’t run the app without any modifications. Issues with prisma servers or what? In prisma console I see that there was 0 requests last hour.
  • n

    Nathan Brenner

    11/22/2018, 9:21 PM
    I've got a graphql server with apollo-server, and the graphql requests require a operationName field in the body of the request. Where would that field go in the
    request
    function from graphql-request?
  • n

    Nathan Brenner

    11/22/2018, 9:38 PM
    Nevermind, found https://github.com/prisma/graphql-request/issues/64
  • j

    JohnC

    11/23/2018, 12:21 AM
    Hey guys! Just joined after doing a GraphQL course led me to use prisma and I ended up getting an invite to the slack, pretty neat. Hope you all had a happy thanksgiving! I spent it learning GraphQL and Prisma 😂
    fast parrot 1
    🦜 5
  • m

    Martin Hunt

    11/23/2018, 12:59 AM
    Hi all, I'm trying to manually send a GQL query via the request method (https://www.prisma.io/docs/prisma-client/features/graphql-requests-JAVASCRIPT-pyl3/) and when calling
    ctx.prisma.request(query)
    I'm getting prisma.request is not a function. Wondering if anyone knows what I'm missing? Happy thanksgiving all 🙂
    • 1
    • 1
  • j

    JohnC

    11/23/2018, 1:10 AM
    Nvm just saw you figured it out 😄
    👍 1
  • j

    jasonkuhrt

    11/23/2018, 2:33 AM
    In graphqlgen, can someone explain to me what the main point of model mapping is? I’m having a bit of trouble seeing it right now 🙂 👀 nm got it 🙂
  • h

    hinsxd

    11/23/2018, 7:33 AM
    Hi there 😉 Is it possible to use another resolver as a middleware? For example, I have
    Copy code
    type User {
      posts: [Post!]!
      rank: Rank!
    }
    I want to calculate the rank using the number of posts, and I hope I can reuse the code in the
    posts
    resolver.
  • p

    pllumh

    11/23/2018, 7:48 AM
    Is there any 'limit' on how many subscriptions are too many for the Prisma server ? Currently I think I've got around 4 active subscriptions on the app I'm building...
    d
    • 2
    • 2
  • j

    junjin

    11/23/2018, 8:07 AM
    Hello, can someone please tell me how to make Union type a scalar type? E.g.
    union TransportMethod = Train | Bus | Airplane \n type route { \n transportMethod: [TransportMethod!]! \n }
    n
    • 2
    • 2
  • t

    tichy

    11/23/2018, 9:46 AM
    Hello, I really love the “almost one click” Prisma server deployment to Heroku … any news on similar feature for AWS being available? Or at least very rough time estimate - we are planning to migrate our production app from Graphcool to Prisma and this is currently no-go. Thank you.
    a
    p
    +2
    • 5
    • 23
1...163164165...637Latest