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

    Paul Hachmang

    09/04/2019, 3:58 PM
    It seems it will be supported in Prisma 2.0, so that makes me guess that it wont ever be supported with Prisma 1.0?
  • p

    Paul Hachmang

    09/04/2019, 3:58 PM
    But Prisma 2.0 doesn’t have any Subscription support which I really wanted to have..
  • r

    Richard Ward

    09/04/2019, 8:18 PM
    Hi all, I am having an issue with relations and querying data. I have the following datamodel:
    Copy code
    type Asset {
      id: ID! @id
      createdAt: DateTime! @createdAt
      updatedAt: DateTime! @updatedAt
      version: Int! @default(value: 1)
      title: String!
      description: String
      amount: Float
    
      user: User!
      assetType: AssetType!
      quote: [Quote!]!
      policy: [Policy!]!
      assetMedia: [AssetMedia!]
    }
    There are 5 non-scalar data types on there, does this mean that to get the full “row” from the db I need to do:
    Copy code
    const asset = await prisma.asset({ id: id });
    const user = await prisma.asset({ id: id }).user();
    const policies = await prisma.asset({ id: id }).policy();
    const quotes = await prisma.asset({ id: id }).quote();
    const assetMedia = await prisma.asset({ id: id }).assetMedia();
    const assetType = await prisma.asset({ id: id }).assetType();
    
    const assetRow = {
      ...asset,
      user: user.id,
      assetType: assetType.id,
      quote: quotes.map(quote => quote.id),
      policy: policies.map(policy => policy.id),
      assetMedia: assetMedia.map(assetMedia => assetMedia.id)
    }
    am I missing something?
    • 1
    • 1
  • l

    LQ

    09/05/2019, 12:59 AM
    Bye
  • a

    Awey

    09/05/2019, 1:15 AM
    anyone know if there is a slack/spectrum/discord chat group for GraphQL Nexus?
  • f

    Fitch

    09/05/2019, 1:29 AM
    https://graphql.org/community/
  • d

    dohomi

    09/05/2019, 5:39 AM
    Hi guys what’s happening with the graphcool api again? For the past 12 hours the entry points going on and off ... the service is totally unreliable at the moment!!!
  • j

    Josef Henryson

    09/05/2019, 8:04 AM
    We run still on graphcool framework and are having issues but the support does not answer on mail or chat. Anyone has an idea how to reach GC support?
  • s

    Stefano T

    09/05/2019, 8:25 AM
    @dohomi @Josef Henryson same here, there is a thread on #graphcool-framework channel as well, support@graph.cool and chat do not answer. @divyendu @Harshit @dpetrick @schickling @nikolasburk @nilan look quite unresponsive, but we have production app you guys! Our customers are getting impatient, and you are not the ones how will have to deal with them! I get that your focus is on prisma but you cannot forget that you have customers on graphcool that depend on your services, if you cannot handle that make an announcement and just shut graphcool down, but running it like this does not make sense and lacks professionalism.
    👏🏼 2
    d
    • 2
    • 2
  • j

    Josef Henryson

    09/05/2019, 8:36 AM
    We were planning a move to Prisma, but if it is like this, we may choose some other solution instead
    👍 6
  • n

    Neal

    09/05/2019, 1:31 PM
    Hi guys, I'm having a hard time understanding how to reach the
    _admin
    and
    /management
    pages when the prisma server is using a
    managementApiSecret
    . I can use the
    $ prisma token
    command but I'm not sure where/how to use it when you are trying to navigate to the pages itself...
    s
    b
    c
    • 4
    • 27
  • n

    Neal

    09/05/2019, 1:31 PM
    Or is it not possible?
  • i

    Isaac Weber

    09/05/2019, 3:50 PM
    I created a Prisma Apollo server 2 boilerplate. Check it out! If you like it I would appreciate a ⭐ 🙂
    prisma cool 2
    fast parrot 3
    👍 1
  • i

    Isaac Weber

    09/05/2019, 3:50 PM
    https://github.com/ikey2244/prisma-apollo2#readme
  • s

    Sean Langford

    09/05/2019, 4:33 PM
    Our paid production graph.cool endpoints have been returning an "empty.last" error from resolver functions for the past 4 hours. Our customers are not able to login to our product and are not happy. I've messaged graph.cool support several times in the last few hours but have not had a response. Is there anyone here who might be able to help?
    ➕ 1
    j
    h
    • 3
    • 2
  • c

    Colin

    09/05/2019, 9:39 PM
    Hi everyone, I'm trying to understand if it's possible to use an existing schema in an existing database (postgres). Or does prisma have to create its own database schema using the service and stage values given to
    prisma init
    ? I'm trying to use prisma with existing data.
  • b

    Bruce He

    09/06/2019, 4:15 AM
    Hello everyone.We just ran an server test to see how many requests nexus prisma could handle but turns out that performance is not acceptable to an commercial product. Is there anyone have this issue before?
    d
    m
    • 3
    • 4
  • m

    Mark Stephenson

    09/06/2019, 8:12 AM
    Not technically a prisma question, i guess, but we were using split connections.. ws for subs and http for the rest. Because we have to have the socket open anyway we decided to send everything via the ws connection, not just subs. What are the downsides of such an approach?
  • j

    Javid Abdullaev

    09/06/2019, 11:12 AM
    Hi everyone? How do you filter JSON data type of Postgres on Prisma? Failed to find smth on the doc
  • d

    Davey

    09/06/2019, 11:21 AM
    Hey all, is there a recommended way to set up category relations? There's conflicting info on the forums 😕
    h
    • 2
    • 1
  • d

    Davey

    09/06/2019, 11:21 AM
    https://www.prisma.io/forum/t/prisma-category-self-relation-hierarchy-doesnt-set-child-categories-ever-and-takes-parent-only-for-one-category/7181/2
  • d

    Davey

    09/06/2019, 11:21 AM
    vs
  • d

    Davey

    09/06/2019, 11:21 AM
    https://www.prisma.io/forum/t/parent-children-relations-get-only-parent-query/3009
  • d

    Davey

    09/06/2019, 11:22 AM
    I want to do something like this but it doesn't look to work when I test it with prisma/_admin parent: Category @relation(name: "CategoryRelationship") children: [Category!]! @relation(name: "CategoryRelationship")
  • d

    Davey

    09/06/2019, 11:25 AM
    I would like to be able to query parent and child categories. But, not set them twice, ie. set the children on the parent category and then set the parent on the child category.
  • d

    Davey

    09/06/2019, 12:24 PM
    It don't really need 2 different relation tables to make this work do I?
  • m

    Matt Webster

    09/06/2019, 2:31 PM
    Hello. How much is Photon going to cost?
    d
    • 2
    • 6
  • i

    Ivor

    09/06/2019, 3:58 PM
    What's the general consensus in this channel for Local State Management when using Apollo Client in your app? • Apollo Client (apollo-link-state) • Redux / MobX / etc
    h
    • 2
    • 2
  • a

    Awey

    09/06/2019, 4:40 PM
    How do we set the jwt token in the header? I've been looking for a while now and can't seem to find an answer. I get how to grab the token from the auth header and use it to authenticate the requests as per this article and others similar to it https://www.prisma.io/tutorials/authentication-in-apollo-server-ct21/ but they are always manually setting the auth header with the bearer token.
    h
    • 2
    • 7
  • a

    Awey

    09/06/2019, 4:43 PM
    Say my register/login mutations return a user/token. From that point after generating the token, how do I set it onto the auth header so that I can redirect to a profile page with the
    currentUser
    info displayed? I already have a
    currentUser
    query setup to only allow authenticated requests butt hat's only because I manually setup the Bearer token in graphql playground
1...309310311...637Latest