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

    ahebwa49

    04/01/2019, 7:49 AM
    Hello prisma fam, I really need some help because this GraphQL error has haunted me for the last few weeks @Harshit
    h
    • 2
    • 1
  • a

    ahebwa49

    04/01/2019, 7:49 AM
    Copy code
    [GraphQL error]: Message: Only absolute URLs are supported, Location: [object Object], Path: items
  • e

    Ecker

    04/01/2019, 9:13 AM
    With Prisma, if you manually delete a row in MySQL/Postgres, does Prisma detect this and clean up dangling relations? – Do I have to be careful when doing manual deletions in MySQLWorkbench? It apears to be fine, but kinda sucks if your littering your database with dangling relation data.
    d
    • 2
    • 2
  • j

    José Gomes

    04/01/2019, 11:35 AM
    Hello! type Directory { id: ID! @unique name: String! files: [File!]! @relation(name: "DirectoryFile" onDelete: CASCADE) parent: Directory @relation(name: "ParentDirectory" onDelete: CASCADE) createdAt: DateTime! updatedAt: DateTime! } When deleting directories, the directory's children are not being deleted but setting to null instead, in the parent field. It's suppose for On Cascade to work like i set it, right?
    h
    • 2
    • 1
  • p

    Patrick Nasralla

    04/01/2019, 12:26 PM
    Would anyone know the best way of implementing a 2D array of strings in Prisma?
    [[String!]]
    doesn’t seem to work even though it should!
  • p

    Patrick Nasralla

    04/01/2019, 12:31 PM
    In my
    datamodel.prisma
    file I have defined part of my schema as follows:
    Copy code
    type IaTemplate {
      id: ID! @unique
      title: String!
      type: String
      searchTerms: String
      children: [String]
      nodes: [ [String!] ]
      flags: [String]
    }
    but looking at the generated
    prisma.graphql
    the generated type is:
    Copy code
    type IaTemplate {
      id: ID!
      title: String!
      type: String
      searchTerms: String
      children: [String!]!
      nodes: [String!]!
      flags: [String!]!
    }
    h
    • 2
    • 3
  • p

    Patrick Nasralla

    04/01/2019, 12:32 PM
    any idea why?
  • u

    Uby

    04/01/2019, 1:00 PM
    would the datamodel v1.1 work better with the mongodb connector?
    h
    • 2
    • 8
  • l

    Lars-Jørgen Kristiansen

    04/01/2019, 2:15 PM
    Why are required to-many relationships optional in the generated prisma schema?
  • l

    Lars-Jørgen Kristiansen

    04/01/2019, 2:17 PM
    Model
    Copy code
    type User {
      posts: [Post!]!
    }
    Prisma schema:
    Copy code
    type User {
      posts(...): [Post!]
    }
  • l

    Lars-Jørgen Kristiansen

    04/01/2019, 2:20 PM
    I'm using nexus-prisma and generate Apollo Client Components. It's a bit frustrating that I have to check for null everywhere. Is there some situation where posts could be null instead of an empty array, and if so why?
  • j

    José Gomes

    04/01/2019, 3:04 PM
    hello { directories(where: { parent: { id: null } }) { id } } It is not possible to search by null?
    h
    • 2
    • 16
  • n

    Novalis

    04/01/2019, 5:55 PM
    Hey there, i'm currently working on a few scripts which should interact with a graphql api. However, those don't need any UI. They act like some worker on a server and do some utility stuff there. I wonder if i can just use apollo-client or if that would be some kind of overkill? Are there clients which would fit my needs better?
    h
    • 2
    • 2
  • i

    impowski

    04/01/2019, 11:46 PM
    Hey guys, I know it’s not related to Prisma (kinda related because I use Prisma 😛 ) but maybe someone could help me out on this issue which I got: https://stackoverflow.com/questions/55464862/send-multiple-notifications-to-a-user-on-specific-time
  • j

    James

    04/02/2019, 6:36 AM
    How do I expose the same where and orderBy parameters that I have in prisma client when talking to prisma server through my graphql endpoint? Are there any examples of this to point to?
    h
    • 2
    • 6
  • r

    romain.charretteur

    04/02/2019, 8:22 AM
    Hello everyone, I wondered what is the latest version of Postgres that prisma supported ? I saw on https://www.prisma.io/docs/1.27/prisma-graphql-api/reference/raw-database-access-qwe4/, that prisma 1.27 support at least postgres 10.3. Does anyone know if there is a latest version supported ? In advance thank you and have a nice day
    h
    • 2
    • 2
  • m

    Mahalakshmi Ramanathan

    04/02/2019, 9:03 AM
    I am a newbie to graphql and prisma. Can someone help me out with any link on how to link prisma orm with flask
    h
    j
    • 3
    • 6
  • j

    José Gomes

    04/02/2019, 10:37 AM
    Hello! I'm need to create new stages on the fly, but make them available through a graphql server, like graphql-yoga. If they are created on the fly, how can i make them available in my endpoint? (each stage is changed by changing a url parameter) Thanks guys 🙂
    • 1
    • 1
  • m

    Marat Khaliullin

    04/02/2019, 11:25 AM
    Hello, I running prisma@1.28.3 in vps, but without managementApiSecret. If I write managementApiSecret in docker-compose.yml and secret in prisma.yml, I have error "invalid token".
    -.txt
    h
    • 2
    • 1
  • e

    ElektrikSpark

    04/02/2019, 12:05 PM
    What I want is to clear all of the urls and replace them with the updated urls. However, when I run this the create either does not go off or it is also affected by the delete. If I put the create before the delete, all of the urls are deleted as I would have expected. If I put the create without the delete it will add the urls. Can I only pass 1 in at a time?
    Updating_links_in_a_group.js
    h
    • 2
    • 1
  • n

    Novalis

    04/02/2019, 2:52 PM
    Hey there, i want to put the PRISMA_CONFIG environment variable into a separate .env file. If PRISMA_CONFIG would look something like 'PRISMA_CONFIG: ABC' i'd know that this would be 'PRISMA_CONFIG=ABC' in the .env file. However how does it behave with this YAML like string?
    Move_from_docker-compose_environment_to_env_file.yaml
    h
    • 2
    • 2
  • b

    Bruno Prela

    04/02/2019, 3:07 PM
    has anyone had the problem of
    prisma deploy
    not working and returning an
    E2BIG
    because their schema has become too large to be sent as a graphql request..
    h
    • 2
    • 2
  • k

    KrusPat

    04/02/2019, 4:00 PM
    has anyone had issue with sharing service with team and team member not able to see full database?
    h
    • 2
    • 1
  • f

    flupshare

    04/02/2019, 4:36 PM
    hello
  • f

    flupshare

    04/02/2019, 4:38 PM
    I have a probleme in my prisma.graphql ....
  • f

    flupshare

    04/02/2019, 4:38 PM
    input ItemSubscriptionWhereInput { """Logical AND on all given filters.""" AND: [ItemSubscriptionWhereInput!]
  • f

    flupshare

    04/02/2019, 4:38 PM
    I don't have the OR or NOT logical handle
  • f

    flupshare

    04/02/2019, 4:38 PM
    do you know why ?
    h
    f
    • 3
    • 8
  • f

    flupshare

    04/02/2019, 5:21 PM
    I'm on mongodb
  • p

    pancake

    04/02/2019, 6:10 PM
    hey prismoids, a question about
    filtering queries
    . Supposing the front end had a method getInvoices, in which the front end defines its return fields in info…. By what means might I best
    intercept a query
    so that invoices marked isArchived are not returned within the selection defined by the front end? If someone has a concrete example, that would be great…
    h
    • 2
    • 3
1...245246247...637Latest