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

    rawriclark

    01/28/2019, 6:33 PM
    just swap the one you re-ordered and the item that was affected by that ordering update
  • r

    rawriclark

    01/28/2019, 6:33 PM
    if that makes sense
  • r

    rawriclark

    01/28/2019, 6:33 PM
    but like again
  • r

    rawriclark

    01/28/2019, 6:34 PM
    not an issue on prisma
  • r

    rawriclark

    01/28/2019, 6:34 PM
    but more on your application logic
  • a

    Adam Williams

    01/28/2019, 8:44 PM
    @nikolasburk Who should we talk to about getting access to Prisma Admin?
  • r

    rawriclark

    01/28/2019, 9:15 PM
    anyone know how I can ignore a GraphQL type in prisma data model? so I don't have to make a definition
    c
    • 2
    • 9
  • r

    rawriclark

    01/28/2019, 9:15 PM
    example
  • r

    rawriclark

    01/28/2019, 9:15 PM
  • r

    rawriclark

    01/28/2019, 9:15 PM
  • r

    rawriclark

    01/28/2019, 9:15 PM
    but I don't want a table called ConnectionsResult
  • c

    Colin McDonnell

    01/28/2019, 9:37 PM
    anyone have long-lived websocket connections running on a Kubernetes-hosted Prisma Server? I can’t for the life of me get a
    context.prisma.$subscribe.user()
    subscription to survive longer than 30 seconds
    r
    • 2
    • 3
  • s

    Steveeeie

    01/28/2019, 10:31 PM
    Anyone have any advice on how to increment a field that is an integer across many results?
  • c

    Corey Hayden

    01/28/2019, 10:36 PM
    I'm having a problem in my back-end playground, ... I can open the 'DOCS' window, and it displays two columns. But whenever I click on any option under 'Arguments' in the second column, it expands to show the options in the third columns, but immediately collapses by itself, back to only displaying the first two columns. If I can quickly click on a 'Type Details' option, in the third column, it will expand to the fourth column and stay open. This is happening for all Queries and Mutations on both of my services. Everything was working fine 2 days ago... I have edited the schema in one service but not the other. Any ideas?
    👍 1
    e
    • 2
    • 3
  • i

    immediato

    01/28/2019, 10:40 PM
    I’m creating an app that wraps a REST API but will also store it’s own data. Should I make two graphql servers for this purpose? or is keeping them in the same one not an issue?
  • i

    immediato

    01/28/2019, 10:42 PM
    Could give more info about the app if that is helpful
  • o

    Omprakash

    01/29/2019, 3:22 AM
    Hi guys, am creating a Prisma graphql application with multiple hosts having Prisma deployed. Is there a way I can access these hosts in some round robin fashion from my Prisma client for high availability reasons ? Thanks !
    m
    d
    • 3
    • 2
  • e

    Ecker

    01/29/2019, 7:17 AM
    Given
    datamodel.prisma
    is:
    Copy code
    type myType {
      id: ID! @unique
      key: String! @unique
      value1: String
      value2: String
      value3: String
    }
    Is it possible in anyway to declare the columns
    value1
    ,
    2
    ,
    3
    in a more dynamic way? Example I have an
    .env
    file defining languages for the project and I need a column for each language.
  • b

    BogdanBIV

    01/29/2019, 8:50 AM
    with column you mean datatype?
  • b

    BogdanBIV

    01/29/2019, 8:57 AM
    @Ecker if you mean dynamically changing type at runtime, I would suggest creating an interface as a parent type for the 3 languages, like Searchable here (https://medium.com/the-graphqlhub/graphql-tour-interfaces-and-unions-7dd5be35de0d)
  • e

    Ecker

    01/29/2019, 9:32 AM
    @BogdanBIV Not to change at runtime, just on first setup and would be nice if I could define it in a more dynamic way. I guess I mean datatype, I'm just used to SQL databases and thinking in columns. The Searchable example was really good, but think that's a slightly different case having it dynamic return types in runtime if I understood it.
  • b

    BogdanBIV

    01/29/2019, 9:38 AM
    Perhaps, someone more experienced can confirm this, but, to me, it sounds like you just need a custom scalar type/s that implements string; value1,2,3 will be of this type/s. So value1 -> type1
  • e

    Ecker

    01/29/2019, 9:40 AM
    Seems like I could use the JSON field type. 🤔
    values: JSON!
    🙏 2
    threads 1
    r
    • 2
    • 3
  • m

    makarst

    01/29/2019, 11:28 AM
    Hey, anyone has updates on https://github.com/prisma/graphql-playground/issues/942? looks like pooling in playground DDOS our servers with endless introspection queries cc @nikolasburk
    d
    • 2
    • 9
  • z

    zonofthor

    01/29/2019, 11:30 AM
    is anyone seeing services down?
    d
    • 2
    • 1
  • u

    Uby

    01/29/2019, 11:37 AM
    Hi Everyone! Does anyone having difficulties mapping prisma client types to graphqlgen types? Is there a full example of prisma used with mongodb connector preferably, prisma client and graphqlgen to create a graphl server?
  • d

    domko

    01/29/2019, 12:15 PM
    Hey, does aynone have an working example of a project with tests for prisma-client?
    h
    • 2
    • 3
  • r

    rawriclark

    01/29/2019, 12:40 PM
    there is alot
  • r

    rawriclark

    01/29/2019, 12:40 PM
    you can check out the demo server
  • r

    rawriclark

    01/29/2019, 12:41 PM
    for anyone having hard time starting out I recommend this: https://www.howtographql.com/graphql-js/0-introduction/
1...198199200...637Latest