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

    Ionut Achim

    03/09/2019, 10:53 PM
    Hi everyone! I'm curious - creating a user with 2 links like this (docs example):
    Copy code
    const newUserWithLinks = await prisma
      .createUser({
        name: "Alice",
        email: "<mailto:alice@prisma.io|alice@prisma.io>",
        password: "IlikeTurtles",
        links: {
          create: [{
            description: "My first link",
            url: "<https://www.prisma.io>"
          }, {
            description: "My second link",
            url: "<https://www.howtographql.com>"
          }]
        }, 
      })
    After checking the created documents, with the mongo shell, I can see the user document has a
    links
    property which is an array containing the two newly created link IDs. All good, but when I check the
    links
    documents I don't see any
    postedBy
    property nor any other property that points back to the user. My question is - how does Prisma resolve the
    postedBy
    field?
    w
    d
    • 3
    • 8
  • j

    johhansantana

    03/09/2019, 11:38 PM
    Hello, what does these prices include? I’m really not sure what the mentioned features are. In the dashboard you have 2 options to
    create a hosted server
    or
    add a server
    but doesn’t explain the prices of these.
  • j

    Jorge

    03/10/2019, 6:17 AM
    has anyone had success deploying nexus client using zeit now?
    f
    • 2
    • 3
  • j

    jblevins

    03/10/2019, 6:43 AM
    Is there a way to use an inputObjectType as an arg in a query?
  • b

    Benjamin Sampson

    03/10/2019, 9:16 AM
    Spent an absurd amount of time on this simple bug - If you have the latest version of Prisma binding (now 2.3.5) sending cookies through a response server-side will not work.
  • b

    Benjamin Sampson

    03/10/2019, 9:17 AM
    Swapped back to 2.2.14 and function
    ctx.response.cookie
    is creating a cookie accessible as
    ctx.request.cookies
  • b

    Benjamin Sampson

    03/10/2019, 9:28 AM
    This is probably relevant to anyone using the
    cookie-parser
    package
  • b

    Benjamin Sampson

    03/10/2019, 9:28 AM
    Not sure if its a known issue to Prisma though
  • r

    Rodrigo Vieira

    03/10/2019, 9:36 AM
    Hey guys! Does anyone know what might be causing this?
    Copy code
    prisma_1  | Exception in thread "main" org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "187.104.214.232", user "dcqbwauyzfxexj", database "d8ep2m9i0v9ar2", SSL off
    Things to note: 187.104.214.232 is my IP address. I am trying to use Prisma locally by connecting to an external PostgreSQL db (heroku addon), but I'm getting this error. Tried everything and searched everywhere.
    i
    j
    • 3
    • 5
  • b

    Bedrock02

    03/10/2019, 1:29 PM
    Query Generated: Plurals Question: I have a field called
    consejo
    and prisma generated a created a
    consejoes
    query. Is there any way that I could change this so that the query is
    consejos
    instead of
    consejoes
  • w

    Wendell Misiedjan

    03/10/2019, 7:21 PM
    How can I define a custom enum with nexus for my query input, without it being in my schema? any suggestion?
    w
    • 2
    • 2
  • m

    Michael Code Nielsen

    03/10/2019, 9:50 PM
    Hi. I'm currently evaluating Prisma for a new project. Isn't it possible to order a query by a related (or nested field)?
    r
    • 2
    • 1
  • a

    ahebwa49

    03/11/2019, 9:44 AM
    I'm trying to use an existing database for another application I'm building and I'm getting the following error on entering default$default when prompted for the name of existing schema. You mind assisting me? I'm stuck.
    r
    • 2
    • 38
  • a

    ahebwa49

    03/11/2019, 9:45 AM
    How do i create another schema and add it to the prisma database ?
  • j

    Jayphen

    03/11/2019, 10:06 AM
    hey all, I've started working with nexus — just wondering what is the best way to extract types for the client application?
    g
    • 2
    • 3
  • d

    domko

    03/11/2019, 10:30 AM
    hey guys, is it somehow possible to tell graphqlgen how to interpret custom scalar types? seems atm it only defines every custom as a string value, i.E DateTime
    • 1
    • 1
  • r

    rem

    03/11/2019, 12:55 PM
    I'm having A LOT of trouble with subscriptions in prisma. Getting to the point where I can't rely on them at all - but desperately want something like triggers to handle a state change on users (which happens all over the place). Anyone come across any decent alternatives?
    h
    • 2
    • 3
  • g

    gwil

    03/11/2019, 4:34 PM
    Hello everyone! Have you ever wondered how your queries should handle authorisation? Here’s a pattern that involves zero dependencies and makes auth a breeze for your server and clients. 🔐 https://dev.to/sgwilym/modelling-authorisation-in-graphql-5375
  • j

    José Gomes

    03/11/2019, 4:48 PM
    Hello! Can prisma let me define a custom database table name for a graphql type?
    h
    • 2
    • 9
  • h

    Henry

    03/11/2019, 7:13 PM
    Nexus question: With the new shorthand for queryField to split queries into multiple files, is there any way to have queries defined as a list type? That is, I have the following code:
    Copy code
    export const contacts = extendType({
        type: 'Query',
        definition(t) {
            t.list.field('contacts', {
                type: 'Contact',
                resolve: (parent, args, ctx) => { ... },
            })
        },
    })
    That I wish to shorten tosomething like the following:
    Copy code
    export const contacts = queryField('contacts', {
        type: 'Contact', // list?
        resolve: (parent, args, ctx) => { ... },
    })
    w
    • 2
    • 3
  • j

    José Gomes

    03/11/2019, 10:13 PM
    Hello! When we deploy with prisma deploy, it only deploys to the service defined in yml file right?
    j
    • 2
    • 8
  • j

    José Gomes

    03/11/2019, 10:13 PM
    th others ones stay still, right?
  • i

    impowski

    03/12/2019, 12:42 AM
    Hey, not a Prisma related question (sort of related), I have inside my database a set of strings with a template like arguments inside of them like
    %s
    or
    ${name}
    and I need to change those variables to the actual values. Which library or method do you recommend? Currently I found two things, first is
    util.format
    and the second one is
    sprintf-js
    .
    j
    • 2
    • 1
  • j

    jblevins

    03/12/2019, 2:49 AM
    In my schema, I have an array of strings for a field. Would I still use a stringArg or is there an arg for lists? type MyType { myStrings: [String!]! } would it look like this? args: { myStrings: stringArg({ list: true }); }
  • l

    Luke

    03/12/2019, 3:15 AM
    are Union Types supported yet?
  • l

    Luke

    03/12/2019, 3:16 AM
    or Interface Types
  • r

    Reid Mewborne

    03/12/2019, 3:19 AM
    GraphQL playground, does this work with .net core applications?
    a
    j
    • 3
    • 5
  • j

    Jidé

    03/12/2019, 9:19 AM
    Demo servers are down, right ?
    d
    t
    e
    • 4
    • 6
  • j

    José Gomes

    03/12/2019, 9:34 AM
    If in one project i need 100 prisma services, and if i have a folder for each one (with a prisma.yml, configured to each service), when i deploy a single service, the other ones don't change, right? And each service has it own database? Thanks
    j
    • 2
    • 6
  • d

    divyendu

    03/12/2019, 9:39 AM
    We are aware of the issues with login to console and deployment to demo servers and working on a resolution. I will share an update here shortly.
    ✅ 1
    a
    j
    v
    • 4
    • 4
1...232233234...637Latest