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

    Thomas

    04/09/2019, 5:31 AM
    Hi all. Is Mysql 8 on the roadmap? Tried with prisma today but crashed and burned when trying to connect.
  • r

    rdc

    04/09/2019, 5:44 AM
    Hi peeps, about the .env variables for
    docker-compose.yml
    -> It is inside on the same folder! Would
    docker-compose up -d
    put it inside the image?
    👍 1
  • s

    Stanislav

    04/09/2019, 6:35 AM
    Hi everyone! I need help with relation in MongoDB my relation don't work two way only one way
  • a

    Al

    04/09/2019, 7:30 AM
    Hello world! Can be prisma-client generated by the API management instead of "prisma generate"?
  • b

    boyney123

    04/09/2019, 7:45 AM
    Hey all 👋 Random question, but does anybody recommend cheap cloud based mongodb provider?
  • a

    Andrei Bacescu

    04/09/2019, 8:17 AM
    Hello guys, I'm trying to run a query with a nested field called postingCompany (see image). Sometimes postingCompanyId is an empty string, when this happens I receive this error message: "No Node for the model Company with value for id found.". Is there any way to send an empty string to connect and to be fine? Thanks in advance.
    • 1
    • 1
  • s

    soosap

    04/09/2019, 10:23 AM
    Hi friends, I am looking for a good way to handle permissions w/ Prisma. I am using nexus to define my GraphQL schema. Just found out that it exposes an authorize hook. Inside of it I want to enforce some authorization logic. I came across the casbin (https://casbin.org/en/) access control library which is also available for node.js. I wonder how I can integrate Prisma w/ casbin. I think the following authorization syntax is neat. Overall, I am looking for a django-guardian style object-level authorization handling in Prisma. What do you guys think?
    j
    • 2
    • 3
  • n

    nuno

    04/09/2019, 11:21 AM
    https://github.com/prisma/graphql-request/issues/122 can anyone from Prisma answer this, please?
  • j

    James

    04/09/2019, 11:57 AM
    Which question? Are there alternatives or is it still maintained? I recommend using fetch unless you need to support old browsers
    threads 1
    n
    • 2
    • 3
  • s

    s1nc4p

    04/09/2019, 1:34 PM
    Hi guys, when i run prisma server in docker it automatically runs on http://localhost:4466. The problem is that i want to disable playground on http://localhost:4466 but there is no such setting for it. So how can achieve that ?
    h
    • 2
    • 5
  • h

    humblefool

    04/09/2019, 2:15 PM
    hey fellow devs, I am a graphql starter and running into an issue with modularizing my graphql schema. I have modularized my schema in 2 different
    schema.graphql
    files (there can be more once the entities increase) with their separate types and queries and mutations. I am using
    extend
    keyword to extend mutations and queries in those. But, when I am trying to run the server, it does not seem to have find the query and mutations defined in one schema file. I am creating the server like this
    Copy code
    new GraphQLServer({
      typeDefs: [ '111.schema.graphql',
                   '222.schema.graphql',
    ],
      resolvers,
      context: { prisma },
    });
    If this is not the right place, could you please point me to the correct place, if you happen to know one.
    a
    • 2
    • 1
  • e

    ervindraganovic

    04/09/2019, 2:42 PM
    Hi guys, does anyone know why a field in this case "type" is not present when creating a new record even if the query return provides it?
    j
    n
    • 3
    • 9
  • a

    alli

    04/09/2019, 5:47 PM
    Hey everyone! We have some very exciting news. The Prisma and novvum.io teams will soon be working to update https://www.howtographql.com/. Before we start, we want to hear from all of you. If you have completed any of the HowtoGraphQL tutorials, please take our survey! 🎉 https://forms.gle/Rk6oW8y6thrWrBHF9
    bowtie 1
    👍 1
  • z

    z01

    04/09/2019, 7:28 PM
    Hey folks, is the
    @indexes
    directive live with the current data model 1.1 preview? I am trying to create a composite index, but while I am getting no error during
    prisma deploy
    phase, the index is not being created.
    h
    • 2
    • 1
  • c

    csamu

    04/10/2019, 9:28 AM
    Can someone give a hint on how to manage file transfers to resolvers in Graphcool Cloud?
  • m

    MJ

    04/10/2019, 9:47 AM
    Hey guys! we just launched SaaS version of erxes on Product Hunt! Do check it out and share us your feedback! 😍 https://www.producthunt.com/posts/erxes#comment-755248
    🙌 1
    i
    • 2
    • 1
  • f

    Fran Dios

    04/10/2019, 10:18 AM
    Does anybody know if the “bring your custom ID” feature (https://github.com/prisma/prisma/issues/3839) is included in 1.30.0 stable? Or it’s still only part of some beta?
    h
    m
    • 3
    • 18
  • n

    Nick

    04/10/2019, 10:30 AM
    Any good graphql test client? For writing tests
  • n

    Nick

    04/10/2019, 10:32 AM
    I found this good post about testing graphql https://graphql.org/learn/validation/
  • n

    Nick

    04/10/2019, 10:35 AM
    Testing in graphql is weird I have to say. When I started using GraphQL in my NodeJS project, I struggle with writing tests: I read numerous blogs, searching for the best way. Unfortunately, there didn't seem to be one. I wonder how come?
  • r

    rem

    04/10/2019, 11:51 AM
    @Nick I felt similar, but I test with
    graphql-request
    and before all tests run, I start a local (to the process) server that I can query and check expected results and mutations https://cloudup.com/cBDLDedjeqU
    👍 1
  • r

    rem

    04/10/2019, 11:53 AM
    Folks - is there a convention (I guess through graph yoga resolvers) whereby I can ensure a model is only accessible with X permission? ie. a Note record can only be queried (and importantly via nested queries) if the user owns the note?
    n
    • 2
    • 5
  • n

    Nick

    04/10/2019, 12:23 PM
    https://medium.com/open-graphql/how-i-started-testing-my-queries-and-mutations-on-graphql-f578abc1b424
    👍 4
  • n

    Nick

    04/10/2019, 4:00 PM
    For TDD I think the cypress one is bit better https://github.com/tgriesser/cypress-graphql-mock Easygraphql only test the validation of schema
  • p

    pancake

    04/10/2019, 5:18 PM
    hey prismoids, a migration question: the
    @rename
    directive doesn’t appear to work as I assume it does, perhaps one of you could quickly point me right. I have a data model
    Copy code
    type Organization {
    ...
      defaultPlanner: OrgUser! @relation(name: "DefaultPlanner") @unique
    }
    which I wish to change to
    Copy code
    type Organization {
    ...
      defaultOrgUser: OrgUser! @relation(name: "DefaultOrgUser") @unique
    }
    however, when I modify it as
    Copy code
    defaultOrgUser: OrgUser! @relation(name: "DefaultOrgUser") @unique @rename(oldName: "defaultPlanner")
    I lose all the data in the field, which seems contrary to how the @rename directive is supposed to work. What am I missing?
    j
    h
    n
    • 4
    • 9
  • n

    Naka

    04/10/2019, 10:52 PM
    Hey ppl, is there a update to update prisma versions? I am currently using
    1.20.5
    and want to use
    set
    feature between relations that was added later. Is there an update guide with breaking changes? I found
    Update to ...
    links on Release and Maintenance section on prisma docs but they are outdated.
    h
    j
    • 3
    • 36
  • a

    ahebwa49

    04/11/2019, 6:49 AM
    Hello prisma fam, I'm failing to query for an order(already in the database) from my prisma backend and done anything possible to the best of my knowledge but in vain, since yesterday. I'd be really happy if anybody here bails me out.
  • a

    ahebwa49

    04/11/2019, 6:50 AM
    here is the error in the browser
  • a

    ahebwa49

    04/11/2019, 6:51 AM
    here is the error in the console
  • a

    ahebwa49

    04/11/2019, 6:51 AM
    here is the schema definition
    Copy code
    type Query {
      users: [User]!
      items(
        where: ItemWhereInput
        orderBy: ItemOrderByInput
        skip: Int
        first: Int
      ): [Item!]!
      item(id: ID!): Item
      profile: User
      itemsConnection(where: ItemWhereInput): ItemConnection!
      cart(where: CartItemWhereUniqueInput!): CartItem!
      order(id: ID!): Order
    }
1...249250251...637Latest