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

    Luke

    11/07/2018, 3:55 AM
    okay cool
  • c

    CCBCodeMonkey

    11/07/2018, 3:56 AM
    its pretty straightforward, I had to modify it quite a bit for SSR because I am using next.js
  • l

    Luke

    11/07/2018, 3:57 AM
    yeah I’m using next.js too
  • l

    Luke

    11/07/2018, 3:57 AM
    👍
  • c

    CCBCodeMonkey

    11/07/2018, 3:59 AM
    so most of my stuff with next js was figuring out how to store the auth0 cookie in a way that could be retrieved client and serverside
  • c

    CCBCodeMonkey

    11/07/2018, 3:59 AM
    and also making apollo client usable from client and server and attaching the auth token to the requests on both client and server
  • c

    CCBCodeMonkey

    11/07/2018, 3:59 AM
    (if you are using apollo)
  • c

    CCBCodeMonkey

    11/07/2018, 3:59 AM
    so I combined that example with this one https://github.com/adamsoffer/next-apollo-example
  • c

    CCBCodeMonkey

    11/07/2018, 3:59 AM
    works nicely now
  • l

    Luke

    11/07/2018, 4:00 AM
    yeah I’m using apollo
  • l

    Luke

    11/07/2018, 4:00 AM
    with graphql-yoga
  • l

    Luke

    11/07/2018, 4:22 AM
    @CCBCodeMonkey got that github example to work on its own
  • l

    Luke

    11/07/2018, 4:22 AM
    off to bed
  • l

    Luke

    11/07/2018, 4:22 AM
    thanks again for your help!!!
  • c

    CCBCodeMonkey

    11/07/2018, 4:26 AM
    no problem, have a good night
  • h

    hinsxd

    11/07/2018, 8:43 AM
    hi there, anyone here has tried to use File Upload with apollo server?
    n
    • 2
    • 7
  • h

    hinsxd

    11/07/2018, 8:46 AM
    it seems prisma doesnt handle file itself, and thus when I handle the received
    Upload
    in my resolver, I have to use other library (or simply stream) to write the file then store the meta in db with prisma. Did I miss something?
    c
    • 2
    • 2
  • g

    Gorodov Maksim

    11/07/2018, 10:40 AM
    I'm using prisma with docker and I want to protect my service with managementApiSecret. Here is how my dockey-compose.yml looks like - http://prntscr.com/lfebga, it contains managementApiSecret but I keep getting warning
    Warning: Management API authentication is disabled. To protect your management server you should provide one (not both) of the environment variables 'CLUSTER_PUBLIC_KEY' (asymmetric, deprecated soon) or 'PRISMA_MANAGEMENT_API_JWT_SECRET' (symmetric JWT).
    . What's wrong?
    d
    • 2
    • 29
  • j

    jacm

    11/07/2018, 12:15 PM
    somebody help me with a good example for a order folders structure of project graphql / prisma?
  • j

    jacm

    11/07/2018, 12:16 PM
    i try build a boilerplate for future projects
  • s

    Steve Mason

    11/07/2018, 2:11 PM
    parrotwave1 Hey everyone! parrotwave1 Need help with a basic setup using prisma, graphqlgen, and typescript. I’m trying to use the generated prisma-client as the model source for
    graphqlgen
    , like this config on the graphqlgen docs https://oss.prisma.io/graphqlgen/#usage. My problem is that the
    defaultResolvers
    have the wrong type, which seems like it has to do with the types coming from the prisma-client. The resolvers get scaffolded out, the types just don’t match up from the prisma-client types to the resolvers. Does anyone have this working?
    w
    • 2
    • 1
  • g

    Greyson

    11/07/2018, 4:36 PM
    Is it possible to specify a different database name than "prisma" in either the docker-compose or prisma.yml file?
    • 1
    • 1
  • p

    prilutskiy

    11/07/2018, 5:11 PM
    Guys, I've just submitted a PR to prisma, it contains some updates for prisma-client codegen (typescript) Please take a look: https://github.com/prisma/prisma/issues/3429 https://github.com/prisma/prisma/pull/3438
  • u

    Uxname

    11/07/2018, 6:18 PM
    Hello everyone, I am creating a server boilerplate based on node.js + graphql + docker + prisma technologies, with users and a simple set of entities, with all sorts of features that are used in almost every project (user management / email registration / role management, access to functions / file uploading, logging with levels, task management, node.js clustering, data compression, caching via Redis, etc.), anyone interested can participate, I will be glad to any feedback. Boilerplate: https://gitlab.com/uxname/uxbackend Description of the functional: https://gitlab.com/uxname/uxbackend/blob/master/docs/wiki_description.md
  • l

    lawjolla

    11/07/2018, 6:47 PM
    Some interesting updates from the Apollo team today. https://blog.apollographql.com/introducing-the-apollo-graphql-platform-8ef34bb269e5
  • j

    jdoyle112

    11/07/2018, 7:20 PM
    Does anyone know if prisma supports mongoDB? It says on the homepage that it’s supported but can’t find any documentation backing that up.
    n
    • 2
    • 1
  • r

    Ramin B

    11/07/2018, 8:21 PM
    Hi everyone. I’ve been reading up on all the docs and messing around locally for some time now, and there are still some high level concepts that i’m having a hard time wrapping my head around. Hoping I could get some insight/help here! I have a repo with
    src
    and
    prisma
    directories, as described in this tutorial (https://www.prisma.io/tutorials/build-a-graphql-server-with-prisma-ct02/). I am using Heroku to deploy my project to using
    prisma deploy
    . My first question is, do I deploy both prisma and also my server to the same Heroku app? Like, do I do a
    git push heroku master
    from my project folder and expect the
    GraphQLServer
    to run and accept requests?
    l
    • 2
    • 6
  • h

    harrisrobin

    11/07/2018, 9:13 PM
    I know the team at Prisma must be overwhelmed with other priorities, but I just wanted to give this some visibility as I think there are quite a few of us waiting on this : https://github.com/prisma/prisma/issues/62 Hope this can be pushed up the priority list 😁 Cheers and thanks for the great work! 🙌🏽
  • p

    prilutskiy

    11/08/2018, 8:52 AM
    Community grows 💪🏻
  • s

    spences10

    11/08/2018, 10:52 AM
    Hello, so, can I use Prisma as a data layer on my own self hosted database?
    n
    a
    • 3
    • 7
1...151152153...637Latest