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

    Ovidiu Spatacian-Tarnu

    11/14/2018, 3:50 AM
    I am using 1.20
  • r

    roberto.guerra

    11/14/2018, 3:50 AM
    I’m on 1.21.0-beta.2
  • r

    roberto.guerra

    11/14/2018, 3:50 AM
    and it worked for me
  • r

    roberto.guerra

    11/14/2018, 3:51 AM
    we switched to beta because we found a bug in 1.20
  • r

    roberto.guerra

    11/14/2018, 3:51 AM
    that was resolved in 1.21
  • o

    Ovidiu Spatacian-Tarnu

    11/14/2018, 3:54 AM
    I’ve just updated my version to
    1.21.0-beta.2
    but still no change
  • o

    Ovidiu Spatacian-Tarnu

    11/14/2018, 3:54 AM
    😞
  • j

    Jubal Mabaquiao

    11/14/2018, 3:56 AM
    @roberto.guerra why does your client start with ctx? unlike what i'm doing https://www.prisma.io/docs/prisma-client/basic-data-access/reading-data-JAVASCRIPT-rsc2/
    r
    • 2
    • 1
  • j

    Jubal Mabaquiao

    11/14/2018, 5:42 AM
    What could have caused this?
    Copy code
    TypeError: Cannot read property 'selectionSet' of undefined
        at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:321:22
        at Array.reduceRight (<anonymous>)
        at Client.generateSelections (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:247:32)
        at Client.<anonymous> (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:95:42)
        at step (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:47:23)
        at Object.next (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:28:53)
        at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:22:71
        at new Promise (<anonymous>)
        at __awaiter (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:18:12)
        at Client.processInstructions (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:88:59)
        at Client.processInstructionsOnce (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:84:45)
        at Client.<anonymous> (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:125:51)
        at step (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:47:23)
        at Object.next (/usr/src/app/node_modules/prisma-client-lib/dist/Client.js:28:53)
        at /usr/src/app/node_modules/prisma-client-lib/dist/Client.js:22:71
        at new Promise (<anonymous>)
    The server is in docker with node:10
    d
    • 2
    • 1
  • p

    prilutskiy

    11/14/2018, 6:29 AM
    How do you create a 1-1 relation with prisma?
  • y

    yassin

    11/14/2018, 6:39 AM
    Hi everyone.. glad to join the community
  • y

    yassin

    11/14/2018, 6:45 AM
    Hi everyone.. glad to join the comunity
    👋 2
  • h

    halborg

    11/14/2018, 7:12 AM
    Has anyone seen this error before? https://github.com/prisma/prisma/issues/3502
    d
    • 2
    • 1
  • e

    Elfayer

    11/14/2018, 9:24 AM
    Are people from Prisma aware that
    graphql-import
    doesn't work at all? Is the project dropped? https://github.com/prisma/graphql-import/issues/235
    d
    • 2
    • 1
  • k

    Kevin Marrec

    11/14/2018, 10:40 AM
    Hi guys ! Regression spotted : https://github.com/prisma/prisma/issues/3508 , can someone of the core team can dive into it ? Thanks !
    s
    • 2
    • 2
  • k

    Kevin Marrec

    11/14/2018, 11:14 AM
    @schickling Around https://github.com/prisma/prisma-examples/tree/master/typescript-graphql, There is some weird thing,
    prisma seed
    use a
    seed.ts
    which use generated prisma client. In the case you don't have generated files yet, you're just not being able to perform the first deploy. Everything works with repo as
    generated
    folder is already here when pulling. But IMO
    generated
    folder must be git ignored.
    s
    • 2
    • 8
  • r

    Ramin B

    11/14/2018, 2:15 PM
    Can someone point to me some examples or docs on how to express nested relations in resolvers? For example, I have a Form type with a collection of FormEntry items. My resolver is simply calling ctx.db.query.forms(null, info), and I am able to query for "forms", but the nested "formEntries" always come back as null.
    n
    r
    • 3
    • 4
  • n

    Naka

    11/14/2018, 2:43 PM
    Anyone having problems with Prisma console search? It seems to use
    [field]_contains
    to every field and it does not work as expected.
    • 1
    • 1
  • s

    siyfion

    11/14/2018, 3:45 PM
    Is there a way to
    update
    a relation if it exists, but not error if it doesn’t…?
  • s

    siyfion

    11/14/2018, 3:46 PM
    Or at least, if it does error, will it have performed the rest of the update?
  • s

    siyfion

    11/14/2018, 3:48 PM
    e.g.
    example_graphql.php
  • r

    Ramin B

    11/14/2018, 4:18 PM
    @divyendu (or anyone else here who knows), seems the npm project
    graphql-resolver-codegen
    is now called
    graphqlgen
    (https://github.com/prisma/graphqlgen). im following an example project (https://github.com/prisma/graphql-prisma-typescript) which still references
    graphql-resolver-codegen
    and has some interface codegen scripts (https://github.com/prisma/graphql-prisma-typescript/blob/master/package.json#L12).. what would the equivalent of that be in the
    graphqlgen
    world?
    q
    t
    • 3
    • 13
  • a

    Alex

    11/14/2018, 4:29 PM
    when I deploy prisma, shouldn’t be the datamodel I defined be available in the playground?
  • f

    fgreinus

    11/14/2018, 5:07 PM
    anyone yet updated to prisma-cli 1.20.5?
  • f

    fgreinus

    11/14/2018, 5:07 PM
    we now have problems with the generated client in js
    q
    • 2
    • 5
  • r

    Ramin B

    11/14/2018, 7:02 PM
    Any ideas on how to debug this?
    Copy code
    Error: "resolvers" defined in resolvers, but not in schema
    🙃 1
  • h

    huv1k

    11/14/2018, 11:09 PM
    I have just published new version of
    graphql-playground
    , what was focused on fixing errors in documentation and showing better error messages.

    https://i.imgur.com/mfdUwbG.png▾

    https://github.com/prisma/graphql-playground/releases/tag/v1.8.2
    fast parrot 6
  • c

    Crazometer

    11/15/2018, 1:02 AM
    Are you guys still maintaining https://github.com/prisma/serverless-plugin-typescript? It hasn't been updated in a while.
  • v

    Valentin

    11/15/2018, 1:11 AM
    Hey there, trying to setup a server for the first time, but it's stuck on the booting state 😕 Any idea why this could be happening?
  • r

    Ramin B

    11/15/2018, 3:03 AM
    Given the following schema:
    Copy code
    type User {
      id: ID!
      email: String!
      name: String
      active: Boolean
      roles: [Role]
      permissions: [Permission!]
      forms: [MemberForm!]
    }
    and the following resolver:
    Copy code
    import { UserResolvers } from '../generated/graphqlgen'
    
    export const User: UserResolvers.Type = {
      ...UserResolvers.defaultResolvers,
    
      permissions: (parent, args, ctx) => ctx.db.user({ id: parent.id }).permissions(),
      forms: (parent, args, ctx) => ctx.db.user({ id: parent.id }).forms()
    }
    Any ideas why I would keep getting this error when trying to query for
    forms
    or
    permissions
    on a user?
    "Cannot read property 'selectionSet' of undefined"
    Copy code
    user(id: "cjohx9n5h002j092058rtzjc6") {
        forms {
          name
        }
        permissions {
          value
        }
      }
    😓 1
    j
    • 2
    • 5
1...157158159...637Latest