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

    warchantua

    01/14/2019, 11:39 AM
    is prisma admin available anywhere except app.prisma.io?
    h
    h
    • 3
    • 4
  • w

    warchantua

    01/14/2019, 12:14 PM
    going to use prisma + mongodb for data layer, and I need to sync some documents from mongodb into elasticsearch 6.5. what is the best way to do this? p.s. I can just synchronously write to prisma, then write to elasticsearch, but eventually, if one of storages fails, I will get inconsistencies, so this is not the case.
    m
    • 2
    • 3
  • k

    Kit Isaev

    01/14/2019, 3:01 PM
    Hello. With the following datamodel:
    Copy code
    type User {
      id: ID! @unique
      sessions: [Session!]! @relation(name: "UserToSessions", onDelete: CASCADE)
      ...
    }
    
    type Session {
      id: ID! @unique
      user: User! @relation(name: "UserToSessions")
      ...
    }
    Why is "sessions" field on type "user" nullable in the resulting Prisma API?
    Copy code
    type User {
    sessions(...): [Session!]
    }
    I've checked multiple cases, this effect always persists in one-to-many relations. The one-to-many relation field is always nullable, regardless of whether it is marked as nullable or non-nullable in the datamodel. Thanks in advance!
  • p

    pettanko

    01/14/2019, 3:53 PM
    Whats the best way to handle file uploads? Anyone have any updated examples with Prisma?
  • f

    faure

    01/14/2019, 4:00 PM
    I've got issues running the docker-compose file found on the guide here: https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-JAVASCRIPT-a002/
  • f

    faure

    01/14/2019, 4:00 PM
    Copy code
    ERROR: for spark-erp_prisma_1  Cannot start service prisma: failed to create endpoint spark-erp_prisma_1 on network spark-erp_default: failed to add the host (veth645932f) <=> sandbox (veth099d5f0) pair interfaces: operaCreating spark-erp_mysql_1  ... error
    
    ERROR: for spark-erp_mysql_1  Cannot start service mysql: failed to create endpoint spark-erp_mysql_1 on network spark-erp_default: failed to add the host (veth926ec62) <=> sandbox (veth6683c08) pair interfaces: operation not supported
    
    ERROR: for prisma  Cannot start service prisma: failed to create endpoint spark-erp_prisma_1 on network spark-erp_default: failed to add the host (veth645932f) <=> sandbox (veth099d5f0) pair interfaces: operation not supported
    
    ERROR: for mysql  Cannot start service mysql: failed to create endpoint spark-erp_mysql_1 on network spark-erp_default: failed to add the host (veth926ec62) <=> sandbox (veth6683c08) pair interfaces: operation not supported
  • f

    faure

    01/14/2019, 4:01 PM
    Copy code
    ➜  spark-erp git:(master) ✗ docker-compose -v
    docker-compose version 1.23.2, build unknown
    ➜  spark-erp git:(master) ✗ docker -v        
    Docker version 18.09.1-ce, build 4c52b901c6
  • f

    faure

    01/14/2019, 4:09 PM
    It was a problem with my operative system. I'm using Arch and had just ran a system wide update, the solution was to reboot.
  • a

    andykay

    01/14/2019, 5:39 PM
    anyone know why I can't do this when name contains spaces:
    Copy code
    return prisma.users({
            where: {
              OR: [{ name_contains: name }, { email_contains: email }],
            },
            orderBy: "name_ASC",
            first,
          });
    • 1
    • 1
  • m

    Max Ast

    01/14/2019, 6:20 PM
    when I update an array within an object, e.g. context.prisma.updateUser({ where: {}, data: {addresses: [address1, address2, address3] }), prisma does not delete already saved addresses which are not in that update query. Does anyone know how I could 'hard' update the address field with the updatesUser method, i.e. so that addresses not included in the update are deleted?
    l
    • 2
    • 2
  • r

    Ramin B

    01/14/2019, 7:48 PM
    Hi. Is anyone else having issues logging into app.prisma.io using github? I just see a blank page (no errors or anything)
    w
    • 2
    • 1
  • r

    Ramin B

    01/14/2019, 7:53 PM
    Trying to debug the issue .. only thing I notice is in the network tab, a POST call is being made to api.cloud.prisma.sh and then result looks like this:
    Copy code
    me: {
      id: "cjndjprkqye........"
      isBeta: false
      memberships: []
      __typename: "User"
    }
    s
    • 2
    • 2
  • t

    Tim Plummer

    01/14/2019, 9:52 PM
    Anyone ever worked with custom scalar types in prisma? I have the scalar defined but
    prisma deploy
    errors out because it doesn't see the scalar definition in the datamodel
    d
    • 2
    • 3
  • f

    faure

    01/15/2019, 12:14 AM
    Can I import specific fields into my server schema from a mutation object in my prisma generated .schema file?
  • b

    Buda

    01/15/2019, 12:18 AM
    Hello everyone !
  • j

    justin_rich

    01/15/2019, 12:56 AM
    hi
  • j

    justin_rich

    01/15/2019, 12:56 AM
    I’m new to this thread
  • j

    justin_rich

    01/15/2019, 12:56 AM
    I’m currently exploring Prisma for our platform
  • j

    justin_rich

    01/15/2019, 12:56 AM
    we use a mongo DB and I’m trying to get setup by writing my gql schema
  • j

    justin_rich

    01/15/2019, 12:57 AM
    our data structure essentially has one collection that holds all document types, but we differentiate each class of document by a datapoint called “collection” …
    m
    • 2
    • 1
  • j

    justin_rich

    01/15/2019, 12:58 AM
    is there a way for me to designate different collection types based on a datapoint from the parent collection
  • k

    Kimmo Sääskilahti

    01/15/2019, 8:57 AM
    Noticed that the links in the
    Get started
    at prisma.io are a bit broken, "Next Step" at the bottom takes to FAQ for some reason https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-TYPESCRIPT-t002/
    s
    n
    • 3
    • 2
  • c

    calvin

    01/15/2019, 10:47 AM
    Hi there, We’re building an internal web application to manage our customers and some other things. Instead of writing resolvers for single query we’d like to use the Prisma Server. However we’re getting CORS errors (not so for the GraphQL API). I tried quite a few things but I have a hard time fixing it. For now, we’re trying to use a Management API token that we’re sending with the http request. Any advice?
  • w

    woss

    01/15/2019, 11:26 AM
    hi guys, happy new year with slight delay 🙂 are there any progress on documenting or even batter, explaining how to accomplish Connections via graphqlgen? github issue is : https://github.com/prisma/graphqlgen/issues/337 thanks
  • l

    Lobo

    01/15/2019, 11:26 AM
    hey guys!! is there any documentation/tutorial on how to implement Auth0 with Prisma/graphql-yoga server? cheers 🙂
    w
    f
    • 3
    • 11
  • s

    Slackbot

    01/15/2019, 11:42 AM
    This message was deleted.
    w
    e
    • 3
    • 4
  • r

    rem

    01/15/2019, 2:00 PM
    Is there a strategy for taking the generated .graphql file and appending resolvers to it? My process atm is manually adding all the resolvers back in then adding the tiny changes I need: https://gist.github.com/remy/fe875861ccb7b9724291050d5550da1c (the start of that process)
    n
    • 2
    • 6
  • r

    rem

    01/15/2019, 2:00 PM
    Or should I just be copying and pasting from the generated graphql file?
  • a

    andykay

    01/15/2019, 3:16 PM
    could someone help me with this? anyone know why I can't do this when name contains spaces: ``` return prisma.users({ where: { OR: [{ name_contains: name }, { email_contains: email }], }, orderBy: "name_ASC", first,
    d
    • 2
    • 2
  • n

    Naka

    01/15/2019, 4:40 PM
    Hey ppl, is there a way to count relation nodes in prisma queries?
    n
    h
    • 3
    • 15
1...189190191...637Latest