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

    Devion Villegas

    03/22/2019, 8:48 PM
  • d

    Devion Villegas

    03/22/2019, 8:59 PM
    Look like an issue was already created. https://github.com/prisma/prisma-content-feedback/issues/75 .
    l
    • 2
    • 1
  • r

    Rodrigo Vieira

    03/23/2019, 7:25 AM
    To use Prisma in production, it is always necessary to have at least 2 servers? One for the Node server and one for the prisma server?
    b
    • 2
    • 1
  • l

    levi chimezie

    03/23/2019, 7:38 AM
    Can the prisma server connect to more than one database?
  • l

    levi chimezie

    03/23/2019, 9:34 AM
    How can I run two prisma docker containers on the same machine?
  • k

    Kianoosh

    03/23/2019, 2:03 PM
    hey guys, I'm having some trouble with implanting resolves for many-to-many relation for instance say we have two types: type Post { id: ID! @unique tags: [Tag!]! } type Tag { id: ID! @unique posts: [Post!]! } now how can i write a mutation function for adding a new Post ? if i try to add a list of tags to the post in query it will complaining about not having any post. The framework i previously worked with (django) had a method for this situation (add) but now i cant find any possible solution here please help.
    u
    • 2
    • 3
  • v

    Vinicius M M

    03/23/2019, 4:36 PM
    Does prisma support union types and interfaces?
    c
    s
    • 3
    • 2
  • t

    Thom Meredith

    03/23/2019, 7:29 PM
    Hello, is graphcool slack team here now?
  • t

    Thom Meredith

    03/23/2019, 7:46 PM
    We are getting a 429 error right now
  • a

    Alex Bluhm

    03/23/2019, 11:50 PM
    Does anyone knows wether Prisma uses a React UI Library? I love the style so much!
    m
    z
    • 3
    • 3
  • a

    ajmakhl

    03/24/2019, 3:56 AM
    Hello, I have a very unique issue. I hope that I can find some answers here. I created a prisma server with docker. the port using is
    Copy code
    4466
    . with my app, I set the port to here
    Copy code
    :4466/myapp/dev
    when I go to the address in my browser and check the network section I get this (the image attached) The numbers increase and they dont stop. as you can see there is some kind of data being transferred at the bottom. this can go on forever... Does anyone have any idea as to why this is happening? it's honestly very frightening to me and I killed the prisma server. I have no clue how to fix this. thanks *EDIT: * I went ahead and created a post on the forum with more information. you can find it here https://www.prisma.io/forum/t/prisma-server-infinite-loop-problem/6480
    h
    • 2
    • 1
  • d

    dennis

    03/24/2019, 4:41 AM
    Hi guys, Does anyone here know how to setup properly prisma on win10 using docker toolbox? I can't find any documentation that will help to configure it the right way. Seems that the documentation on prisma page is for linux based os.
    d
    t
    • 3
    • 2
  • e

    Ecker

    03/24/2019, 2:28 PM
    This has been probably asked before, but can't seem to find the answer in the docs. In a Prisma datamodel, is it possible to create a type which can have different parents, and point to that parent directly? Example bellow i point with an ID, and maybe have a string for parentType. But would prefer Stats to have
    parent: User/Team!
    directly.
    Copy code
    type User {
    	id: ID! @unique
    	stats: Stats
    }
    type Team {
    	id: ID! @unique
    	stats: Stats
    }
    type Stats {
    	id: ID! @unique
    	parent: ID! # ← Is it possible to make this relationship point to a Team or a User, depending on which it belongs to?
    	parentType: String! # Is this needed? Is there a better approach?
    }
    j
    • 2
    • 6
  • s

    serum

    03/24/2019, 6:00 PM
    is there a way to implement a subscription, that only resolves for a given id? I can do this in the playground with the raw prisma server, but can't figure out how to do it using the prisma client. docs are silent on this, too
    • 1
    • 1
  • j

    Joseph

    03/24/2019, 9:41 PM
    Hey, i'm a bit confused why I have both a schema.graphql and generated prisma.graphql. I get that schema.graphql is tailored to the application, but is it bad practice to use it? How much should I implement there?
  • j

    Joseph

    03/24/2019, 10:05 PM
    Also, does anyone have an example of how to use enum type with SDL (datamodel.prisma)?
  • h

    Hmm

    03/24/2019, 10:06 PM
    schema.graphql is your "client facing" schema
  • h

    Hmm

    03/24/2019, 10:07 PM
    prisma.graphql is sort of a helper functions you can import in your schema and save you from have to define everything
    j
    m
    • 3
    • 3
  • b

    brant

    03/24/2019, 11:09 PM
    Just FYI a ton of the docs are broken on 1.29. I’ve mostly noticed it with code snippets: https://www.prisma.io/docs/prisma-client/basic-data-access/writing-data-JAVASCRIPT-rsc6/
    r
    • 2
    • 3
  • x

    xiaoqf10

    03/25/2019, 7:31 AM
    Hi, how to rename a type which is already used as relation in other types?
  • j

    James

    03/25/2019, 8:35 AM
    I'm trying to make a subscription with prisma client, but I want more than just the mutated asset - In particular I want the mutation type in the payload. The docs are kinda minimal about subscriptions and I didn't find what I was looking for in the example repo. how would I change the exaple repo (prisma-examples/node/graphql-subscriptions/src/) to get the payload similar to what prisma server gives
    πŸ™ 1
  • o

    Omprakash

    03/25/2019, 11:56 AM
    Which Algorithm or technique is used to generate ID field in prisma ?
    πŸ‘ 2
    d
    • 2
    • 3
  • k

    Kianoosh

    03/25/2019, 1:27 PM
    How do i set maximum length for my String fields ?
    j
    • 2
    • 4
  • a

    Andrei Bacescu

    03/25/2019, 2:53 PM
    Hello guys! I have two models: User and Image where a user could have many images. Now, I have the next situation: User A has images a, b and c saved in the database. If on updateUser mutation I will send just two images, for example, image a and d, I want image b and c to be deleted. My resolver's current flow is: 1) Check all images associated with the current user 2) Compare images from 1) with images sent as arguments and create one array ( KeepArray ) with images that will be kept (in my case, image a and d because those images are sent as argument) and one more array ( DeleteArray ) which contain what images will be deleted (b and c in my case, because those images aren't sent as arguments) 3) Inside updateUser mutation I'll delete all images from DeleteArray and for images from KeepArray I use upsert My question is: Can I do those operations in a more efficient way? Here I present a simple example but in my code, I have more complex situations and I want to know if there exists a better way to do that. Thank you in advance. PS: Sorry for repost.
  • m

    Mustafa

    03/25/2019, 3:14 PM
    This seems to work when I provide a filter string when querying, however, if I don't provide a filter string, I can't get the category from the response but I can get the rest of the data, any idea why?
    How_to_filter_on_enum_.php
  • m

    MaksimReact

    03/25/2019, 4:30 PM
    Hi everyone, How are you today? I'm a new guy with Prisma
    πŸ‘‹ 3
  • m

    MaksimReact

    03/25/2019, 4:31 PM
    Could you let me know about Prisma and how it works with graphQL based on React.js project
    h
    n
    • 3
    • 4
  • m

    MaksimReact

    03/25/2019, 4:34 PM
    @Harshit, @Mustafa could you help me about misunderstanding between Prisam, GraphQl and React.js?
    m
    • 2
    • 1
  • d

    dan

    03/25/2019, 4:55 PM
    Hey guys, if I am doing an
    upsert
    is there any way to know if the record was updated or created?
    b
    • 2
    • 1
  • m

    Morten Vistisen

    03/25/2019, 8:12 PM
    Does anybody have experience with react-apollo and sending a mutation containing a one-to-many relationship? The mutation is working in the playground, but not when I try to implement it on the frontend
1...241242243...637Latest