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

    Stephen Jensen

    03/14/2019, 7:43 PM
    @Jerry Jäppinen you could do docker-compose up in both folders and as long as you didn’t have port clashing on the host it would work. Docker-compose looks for the yml file in your current folder
    j
    • 2
    • 3
  • j

    Jidé

    03/14/2019, 9:29 PM
    Anyone tried the new
    @id
    directive with datamodel 1.1 ? specifically the strategy: NONE behaviour ? I updated my docker instance to use 1.3 alpha and cli, but the generated graphql api still does not show an id field in the input arguments
    h
    d
    • 3
    • 3
  • j

    Jidé

    03/14/2019, 10:18 PM
    It works with ID, not with Int \o/
  • p

    pedro

    03/14/2019, 10:35 PM
    Hello everybody. I’m having
    "prisma": "^1.28.3"
    installed. As I assume it should have the
    /_admin
    dashboard but it loads the Playground for me
    j
    d
    • 3
    • 5
  • k

    Kenneth Tan

    03/15/2019, 12:42 AM
    is there a way i can get all posts without any content in this example? https://github.com/prisma/prisma-examples/blob/master/go/graphql/server/resolver.go
  • c

    cfree

    03/15/2019, 1:00 AM
    I’m trying to do a semi-complicated filter of getting users that DON’T have an Office assigned, but it’s not giving me the results I expect… There are users in my database that have no Office set Inside resolver:
    Copy code
    const offices = [
        'PRESIDENT': 'President',
        'VICE_PRESIDENT': 'Vice President',
        'SECRETARY': 'Secretary',
        'TREASURER': 'Treasurer',
    ];
    
    return ctx.db.query.users(
          {
            where: {
              AND: [
                // Works fine
                { accountStatus: 'ACTIVE' },
                // Works fine
                { accountType_in: args.accountTypes },
                // Returns nothing
                { office_not_in: Object.keys(offices) },
              ],
            },
          },
          info,
        );
    Schema:
    Copy code
    enum Office {
      PRESIDENT
      VICE_PRESIDENT
      SECRETARY
      TREASURER
    }
    
    type User {
      ...
      office: Office
    }
    j
    l
    • 3
    • 8
  • c

    cfree

    03/15/2019, 1:18 AM
    Anyone have an example of the
    NOT
    filter being used?
  • j

    James

    03/15/2019, 4:05 AM
    I saw mention of sqlite and many other dbs in a github issue but I found no mention of it in the docs. Is there a working sqlite connector?
    h
    • 2
    • 2
  • h

    Hadi

    03/15/2019, 4:24 AM
    Hello guys, do you have any good resources for uploading file using graphql and prisma? thanks
    b
    • 2
    • 2
  • e

    ervindraganovic

    03/15/2019, 8:26 AM
    Has anyone had luck rolling back from the Prisma Admin `v1.29-beta?
    h
    h
    • 3
    • 18
  • b

    btotharye

    03/15/2019, 1:00 PM
    do we know when there might be functionality like https://github.com/prisma/prisma/issues/4060 ? Starting to wonder if I should even use mongo with prisma at this point
  • b

    btotharye

    03/15/2019, 1:05 PM
    basically I was doing something like this before and now it doesn't work obviously with using the Mongo connector with Prisma so wondering if there is some better way with the connector to do this now:
    Copy code
    query SEARCH_SNAKES_QUERY($searchTerm: String!) {
        snakes(
          where: {
            OR: [
              { name_contains: $searchTerm }
              { description_contains: $searchTerm }
            ]
          }
        ) {
          id
          image
          name
        }
      }
    h
    • 2
    • 2
  • h

    HoYeon

    03/15/2019, 1:48 PM
    Can I replace string type of ID with Int type (auto increasing!)
    h
    • 2
    • 2
  • n

    nxxc

    03/15/2019, 2:01 PM
    How to delete 'view' at 'Detail area'
    h
    • 2
    • 2
  • h

    HoYeon

    03/15/2019, 3:51 PM
    I have a question about mysql table creation from datamodel.prisma!! as you can see the under image, I think many tables must be created. Is it possible to make by my suggested way? Also I wanna know the difference between two ways! Thank you a lot!
    n
    • 2
    • 2
  • l

    lawjolla

    03/15/2019, 5:34 PM
    Do subscriptions not work with Prisma's Fargate tutorial?
  • r

    Rinat

    03/15/2019, 5:36 PM
    Is every one-to-many relation represents as many-to-many relation in postgres?
  • h

    huv1k

    03/15/2019, 5:40 PM
    Hello everyone 👋, there is a new version of
    prisma-admin
    release this version was focused on fixing all bugs discovered during the first 2 days. Sorry for all the troubles what happen during that time. We discovered that people are missing search features a lot. This feature will be implemented next week. Soon there will be data-browser back in the console. This version improved little bit deleting records, we are still going to implement batching deletes soon. We are looking for more of your feedback https://github.com/prisma/prisma-admin-feedback/issues
    🙌 5
    parrotwave1 1
    👍 2
    e
    • 2
    • 4
  • j

    jblevins

    03/15/2019, 6:26 PM
    Has anybody else been able to use their where queries? Mine result in this error every time. I have deleted node-modules, generated, and burned my docker containers AND images over and over again, resulting in the same error with schema that was output from the SDL converter. This has brought everything I have been working on to a grinding halt. https://github.com/prisma/nexus/issues/87 is the issue I opened.
  • a

    Andy Dietler

    03/15/2019, 7:27 PM
    I can't get @unique to be enforced with MongoDB. Submit a user with the same email address twice in a row and get two records in my DB.
    r
    • 2
    • 3
  • h

    Hmm

    03/15/2019, 9:38 PM
    Should SignIn be a query or mutation? The only interaction with the DB is a query. Such as
    Copy code
    const user = await ctx.db.query.user({ where: { email } });
    But the examples I have seen create it as a mutation. Is it because you can call it onSubmit of a form?
    b
    • 2
    • 1
  • l

    Luca

    03/15/2019, 9:46 PM
    IMO it should be a mutation, simply because it's more logical. You may not necessarily edit data in the DB right now, but you do generate a token at least which makes it already different from a simple query. Later, you may find yourself that tokens are not secure enough so you save the session token in your DB which makes it a mutation.
  • h

    Hmm

    03/15/2019, 9:52 PM
    Yeah, that seems reasonable. Thank you for your help
  • a

    Andy Dietler

    03/15/2019, 9:57 PM
    -.txt
    i
    t
    • 3
    • 6
  • j

    jblevins

    03/16/2019, 12:43 AM
    Is there a way to get the query or mutation from a request in graphql-yoga's middleware?
  • y

    yuritoledo

    03/16/2019, 12:56 AM
    hey guys Anyone knows how to deploy prisma on
    now.sh
    ?
    j
    • 2
    • 1
  • d

    dnbkr

    03/16/2019, 3:52 AM
    hey everyone i'm having some trouble getting subscriptions to work, followed all the steps in the apollo-client guide and graphql-yoga... compiles fine and no errors, but can't seem to get it
  • i

    immanuelrosal

    03/16/2019, 4:26 AM
    Can someone help me and @Andy Dietler? We're both getting the same error and can't deploy any local instance anymore.
    • 1
    • 1
  • j

    jblevins

    03/16/2019, 5:58 AM
    I figured out my issue. Is there a way to add to the documentation? It leaves a bit too much to the imagination. I'd definitely like to contribute.
    b
    • 2
    • 1
  • k

    kuma-guy

    03/16/2019, 8:16 AM
    I deployed Prisma to AWS Fargate following on https://www.prisma.io/tutorials/deploy-prisma-to-aws-fargate-ct14 Anyone knows how to disable playground or limit access? (I don't want anyone can see the playground)
    m
    • 2
    • 8
1...236237238...637Latest