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

    Nick

    11/30/2018, 10:14 AM
    Anyone knows if there is an example of using react-testing-library by kent and apollo graphql(the client one)?
  • t

    terion

    11/30/2018, 11:06 AM
    I continuously face this issue for more then 6 months (see thread): https://prisma.slack.com/archives/CA491RJH0/p1528896992000767 as a matter of try to fix it, is there a way to somehow trigger prisma server internal cache busting withoout relooading entire server?
    d
    • 2
    • 3
  • a

    artindaniel

    11/30/2018, 11:49 AM
    Hey, is it already possible to have nested filters in the latest beta of the mongo db connector?
  • k

    Korn

    11/30/2018, 1:19 PM
    Hey there 🙂
  • k

    Korn

    11/30/2018, 1:20 PM
    How to orderBy multiple orderByInput (enum) ?
  • m

    Mukul

    11/30/2018, 1:58 PM
    hi! sometimes when I do prisma.query.user({id}) .. and I console.log I only get the id back .. other times if graphql info parameter is passed like prisma.query.user({id}, id) .. I get the full JSON object
    a
    c
    • 3
    • 11
  • m

    Mukul

    11/30/2018, 1:58 PM
    #help how does it work?
  • c

    Craig

    11/30/2018, 2:15 PM
    yarn run storybook lol focus
    😁 1
  • g

    Gorodov Maksim

    11/30/2018, 2:32 PM
    Could anybody tell me how this search works?
  • h

    Henry

    11/30/2018, 6:41 PM
    I’m migrating my server based on prisma-bindings to prisma-client and graphqlgen. Is this the correct way to express relations using prisma client now?
    Copy code
    import { CalendarResolvers } from '../generated/graphqlgen'
    
    export const Calendar: CalendarResolvers.Type = {
        ...CalendarResolvers.defaultResolvers,
        events: (parent, args, ctx) => {
            return ctx.db.calendar({ id: parent.id }).events()
        },
    }
    w
    • 2
    • 1
  • h

    Henry

    11/30/2018, 6:42 PM
    Or do I need to do this instead?
    Copy code
    events: (parent, args, ctx) => {
            return ctx.db.calendarEvents({
                where: {
                    calendar: {
                        id: parent.id,
                    },
                },
            })
        },
  • f

    force

    11/30/2018, 9:24 PM
    Is anybody generating TS types for their API layer to be consumed by their (typescript) frontend ?
    s
    • 2
    • 9
  • e

    Ecleptic

    11/30/2018, 10:58 PM
    hey is anyone here having issues with hitting their demo DB? I can't access mine, just keep getting timed out
    d
    d
    • 3
    • 42
  • i

    immediato

    11/30/2018, 11:25 PM
    What’s a good cloud host for a prisma db? Can I use something like mLab?
    e
    h
    • 3
    • 2
  • r

    ryannealmes

    12/01/2018, 12:46 AM
    hey everyone I have a random graphql question If I have the following enum
    Copy code
    enum ProjectType {
        ML
        BLOCKCHAIN
        IOS
        ANDROID
        WEB
    }
    and I want to pull it on the front end. I can do this via introspection, but if I want custom casing like
    ML, Blockchain, IOs, Android, Web
    it would be difficult for the consumer to do this in a generic/dynamic way. Is there a way to add meta data to enum values so that it comes through on introspection? Any help would be appreciated!
    f
    r
    • 3
    • 3
  • m

    Moritz

    12/01/2018, 2:25 AM
    Hi, is there a way to backup/share the playground history/state for a project? I would like to commit a collection of sample queries and mutations to a git repo as a kind of quick&dirty test suite. Thanks for any ideas/suggestions!
    h
    • 2
    • 1
  • i

    Ivan Petrushev

    12/01/2018, 8:07 AM
    Hi guys! Prisma is able to work with MySQL backend, but how can an already existing MySQL app be migrated to Prisma? I can't find any steps for that beyond "write SDL definitions". I get that there is no introspection capabilities for MySQL? Let's say I put all my definitions to datamodel.prisma, then what? How to import the old data? I see Prisma is using the local DB with name "default@default". Should I write a service that gets old data and copies it to this DB? Is there more automated way to do this? This could be painful for an app with more than a few tables.
    g
    d
    • 3
    • 2
  • g

    Gorodov Maksim

    12/01/2018, 9:51 AM
    I just had such error using a demo server. Not sure if it is Prisma's problem, just thought maybe it could be useful. After this I tried to do this mutation again and it worked perfectly.
    f
    • 2
    • 3
  • l

    Lobo

    12/01/2018, 12:04 PM
    hi guys! any tutorial or guide in how to approach searching with Prisma? I have seen some info about using the
    where
    but it's case sensitive so it's not a good solution I've also seen some tutorials using external services. I'd like to do something as simple as possible... with queries if possible.... 🙂
    d
    • 2
    • 2
  • m

    Mark Volkmann

    12/01/2018, 2:45 PM
    I used prisma to create a Postgres database running in Docker. What command can I enter to start psql so it connects to that database?
  • a

    Andres Montoya

    12/01/2018, 2:53 PM
    Hi, what do you prefer, Django or Laravel and why?
  • a

    Alex

    12/01/2018, 2:59 PM
    What would be the best strategy to resolve a type that has a field declared as
    Json
    in Prisma and has to be resolved into a specific type through the GraphQL Gateway. In my case I’m running apollo server.
    Best_way_to_resolve_Json_into_Union_Type.js
  • c

    Chris

    12/01/2018, 3:19 PM
    I made some fun stuff for my side project in today hackathon, try it. 😄 (wwcod.github.io)
    💚 1
  • a

    alexanbj

    12/01/2018, 4:12 PM
    Hi, I am on a free plan on graph.cool but I am close to the limits of the free plan. If I try to upgrade to a paid plan, it just hangs and spews a stracktrace in browser’s console. My site is going to go down soon if I can’t upgrade the plan
    ✅ 1
  • m

    Mark Volkmann

    12/01/2018, 4:57 PM
    If I allow Prisma to create a Postgres database for me in Docker, how can I use psql to see it? I tried running
    docker exec -it {container-id} psql -U prisma
    . That starts psql fine, but when I enter
    \d
    it says there are no relations.
    h
    • 2
    • 1
  • c

    cmckinstry

    12/01/2018, 6:45 PM
    So, I’ve got this datamodel for an app I’m working on. I’ve got the relationship between Posts and Photos set up, but when I go to create a mutation for this, I’m a bit stuck. Basically, my idea was to create each of the photos, and then connect them the post after it was done. But, because the post doesn’t exist yet, there’s not way to connect the post id to the photo, causing an error. Anyone have an idea as to how I can implement this?
    -.txt
    🙌 1
  • c

    cmckinstry

    12/01/2018, 6:48 PM
    Oh wait
  • c

    cmckinstry

    12/01/2018, 6:49 PM
    Just found the docs… https://www.prisma.io/docs/prisma-client/basic-data-access/writing-data-JAVASCRIPT-rsc6/
  • p

    pllumh

    12/01/2018, 10:42 PM
    If I've got a connection between user and posts, is there anyway to create post on
    updateUser
    , while still maintaining the list of old posts connected to the user ?
  • p

    pllumh

    12/01/2018, 10:43 PM
    Copy code
    mutation {
      updateUser(data: { posts: { create: { title: "Title" } } }) {
        id
      }
    }
1...169170171...637Latest