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

    val

    09/25/2018, 12:17 PM
    hey all, i know this has probably been asked so apologies if so. How can i sort a query based on the number of items in an array the object has. I.e. if
    User
    object has
    followers: [User!]!
    property, how can I get a list of users sorted by number of followers?
    a
    • 2
    • 12
  • a

    andykay

    09/25/2018, 1:10 PM
    Hi there, this may be a stupid question. I'm just starting to really dig into prisma, but with the new prisma cllient can I use the generated graphql queries on the frontend in my next.js app with apollo?
  • a

    aroman

    09/25/2018, 1:27 PM
    Good morning šŸ™‚ Any updates on this? https://github.com/prisma/prisma/issues/1936
    n
    • 2
    • 2
  • s

    silkyland

    09/25/2018, 2:14 PM
    @andykay sure you can
    šŸ‘ 1
  • v

    val

    09/25/2018, 2:19 PM
    Say i have an object like
    Copy code
    type FollowSuggestionList {
        id: ID! @unique
        updatedAt: DateTime!
    
        users: [User!]! @relation(name: "FollowSuggestionEntry")
    }
    and when i create an instance of it, I connect it to an array of users. When I later query that users property am I guaranteed to get it back in that original array order (provided I don't supply custom ordering)?
    n
    • 2
    • 7
  • a

    andykay

    09/25/2018, 4:54 PM
    anyone have a good link on how to implement authentication with prisma client?
    s
    • 2
    • 2
  • m

    monkeybonkey

    09/25/2018, 5:09 PM
    how do I set the database name under the prisma configuration in docker-compose.yml?
  • m

    monkeybonkey

    09/25/2018, 5:10 PM
    prisma: image: prismagraphql/prisma:1.14 restart: always ports: - "4466:4466" environment: PRISMA_CONFIG: | port: 4466 # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security managementApiSecret: my-secret databases: default: connector: postgres host: postgres port: 5432
    s
    • 2
    • 1
  • m

    monkeybonkey

    09/25/2018, 5:13 PM
    is there always a default database? can prisma deal with multiple databases?
    c
    s
    • 3
    • 4
  • k

    Kevin S

    09/25/2018, 10:33 PM
    Hi
  • k

    Kevin S

    09/25/2018, 10:33 PM
    Are there currently issues with graph.cool hosted service?
  • k

    Kevin S

    09/25/2018, 10:33 PM
    I'm getting 504 errors and images are not loading
  • r

    Romucci

    09/26/2018, 5:33 AM
    Yo guys! Any idea if Prisma would accept a Spanish translation of their docs? I'd be willing to do it for free šŸ˜„
    šŸ‘ 1
    a
    • 2
    • 4
  • k

    kitze

    09/26/2018, 9:37 AM
    Copy code
    exports.Prisma = prisma_lib_1.makePrismaClientClass({
                                  ^
    TypeError: prisma_lib_1.makePrismaClientClass is not a function
    Any idea what's causing this? I have to correct it manually every time I use
    prisma generate
    d
    • 2
    • 11
  • b

    br

    09/26/2018, 11:42 AM
    Okay... I'm finding it difficult to distinguish and disambiguate the components of Prisma. I need some help. I love everything that Prisma seems to provide as far as attaching to a PostgreSQL database. I love the simplicity of the resolvers, the filtering and more for free.
  • b

    br

    09/26/2018, 11:43 AM
    What I want to do is write my own custom graphql schema and resolvers which then point to the Prisma server instance. This is the right approach, right?
  • b

    br

    09/26/2018, 11:52 AM
    I'm a visual thinker primarily, I really need a diagram which shows the relation between Prisma Server, Prisma Bindings, Data Modelling, Query Engine, GraphQL Server, and Prisma Client Within the context of hooking Prisma to an existing PostgreSQL server. Unfortunately there just is not a straightforward A -> Z explanation and tutorial for this, which I understand given the rapid development and progress on the Prisma stack.
    l
    • 2
    • 4
  • j

    Josh

    09/26/2018, 12:04 PM
    Hi, want to ask about the new prisma client for flow. is it ready to use or still in development ? i look at the blogpost said its ready but in the docs it said flow is coming soon. I tried generate one in my project and the flows not working. thanks in advance
    n
    • 2
    • 1
  • m

    matus.congrady

    09/26/2018, 2:11 PM
    Hey, is there a way to disable request batching when using prisma-binding? I'm using prisma-binding for data migration, and I'm getting
    EntityStreamSizeException
    error (probably from Scala http lib called akka) because the batch is too big
    k
    n
    • 3
    • 2
  • c

    CCBCodeMonkey

    09/26/2018, 4:07 PM
    are we able to increase field size limits on prisma yet? I need to store some documents, 256k isn't going to cut it?
  • j

    jdoyle112

    09/26/2018, 5:07 PM
    I’m having trouble connecting prisma deployment to a GCP mySQL database. It says ā€œCould not connect to databaseā€. I am entering the correct using credentials.
  • j

    jdoyle112

    09/26/2018, 5:07 PM
    Anyone have this problem?
  • a

    artindaniel

    09/26/2018, 5:13 PM
    Does anybody know where I can find the documentation for the mongo db connector?
  • p

    patrickdevivo

    09/26/2018, 5:13 PM
    @jdoyle112 did you make the GCP database accessible from any ip? by default it’s locked down
  • j

    jdoyle112

    09/26/2018, 5:14 PM
    Yes I figured it out. I was trying to use the IP address as the host when connecting instead of the instance connection name
  • j

    jdoyle112

    09/26/2018, 5:14 PM
    Actually nvm that didn’t work either haha
  • j

    jdoyle112

    09/26/2018, 5:23 PM
    Does prisma only support postgreSQL when using an existing DB? Says it on this page but didn’t think that was the case.. https://www.prisma.io/docs/get-started/01-setting-up-prisma-existing-database-a003/
    b
    n
    • 3
    • 11
  • a

    andykay

    09/26/2018, 5:37 PM
    Hi I have a query that works great in the playground but breaks using Apollo Query
    • 1
    • 1
  • a

    andykay

    09/26/2018, 5:37 PM
    Any help would be great! I posted the component in the thread above^ I just can't figure out what I am doing wrong
  • h

    Henry

    09/26/2018, 5:43 PM
    @andykay Whats the error Apollo throws at you?
    a
    l
    • 3
    • 3
1...124125126...637Latest