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

    nico

    05/05/2019, 7:41 PM
    Hi all đź‘‹
    đź‘‹ 1
  • v

    v

    05/06/2019, 10:19 AM
    hey, I have been trying to fix this for a while. Any idea!? :C
  • k

    kitze

    05/06/2019, 12:03 PM
    Wow. This is such a nifty feature, why is it going away?
    d
    • 2
    • 2
  • m

    MaksimReact

    05/06/2019, 12:38 PM
    Hi Guys, I'm struggle when call
    mutation
    query.
  • m

    MaksimReact

    05/06/2019, 12:39 PM
    I have added
    Bearer token
    . But it shows message
    Not Authorized
    on Prisma Playgroud
  • m

    MaksimReact

    05/06/2019, 12:40 PM
    Can anyone give me advise?
    f
    • 2
    • 3
  • f

    Filip Gulan

    05/06/2019, 2:56 PM
    Hi, Does exist some good tutorial how to integrate Auth0 into Graphcool hosten on console.graphcool I am unable to find working solution. I get tokens from Auth0 using their api, but when I want to create user I get
    GraphQL error: The provided idToken is invalid
    . I am really lost and it is not last problem I face. There is another things that are unclear for me and graphcool docs seems empty
    f
    • 2
    • 1
  • f

    faure

    05/06/2019, 6:21 PM
    There's 3 communication channels for Prisma: Spectrum, Discourse and Slack. I'm having a hard time deciding where to post my question
    h
    n
    • 3
    • 8
  • n

    nico

    05/06/2019, 6:55 PM
    https://github.com/prisma/prisma/pull/4146 -- followed this update that fixes disconnecting relations in mongodb when adding a new connection.. does anyone else know if this fixes simply disconnecting as well?
  • n

    nico

    05/06/2019, 6:55 PM
    For example, I have an optional relation that connects fine, but if you call update with
    disconnect: true
    , nothing happens, the relation is still there.
  • n

    nico

    05/06/2019, 7:06 PM
    Oh, hadn't updated schema for input in yoga -- yes this works ^ đź‘‹
    🙂 1
  • j

    jasonmj

    05/06/2019, 8:42 PM
    Hi all, I'm stuck on what seems like an easy problem, but can't find any useful guidance searching online... I think I might be "doing it wrong". I'm trying to save an array of strings like ["one", "two", "three"] with a mutation query. My datamodel uses [String!]! and the error I get says "found not an object". Should I be using something like an enum instead?
    c
    • 2
    • 1
  • k

    Kurt

    05/06/2019, 9:09 PM
    Maybe it couldn’t find the object to update?
  • j

    jasonmj

    05/06/2019, 9:39 PM
    I'm testing with the graphql playground and using ["test"] as the value so it doesn't need to look for a variable.
    j
    • 2
    • 5
  • j

    jasonmj

    05/06/2019, 9:42 PM
    Schema introspection shows the type as a "LIST" ofType "NON_NULL" which is ofType "String" and kind "SCALAR".
  • j

    Jeff

    05/07/2019, 12:41 AM
    What is a popular order of creating a project with Prisma and React? I'm thinking the following way would be good: set up datamodel.graphql + generate prisma.graphql + schema.graphql + resolver + React front end setup?
  • t

    Teodoro Meyerhoff

    05/07/2019, 3:46 AM
    Hi everybody, has anyone gone through this guide? https://cloud.digitalocean.com/droplets/142885197/access?i=8b2de3. I am currently working past a number of inconsistencies in the documentation. My machine is a macbook and I have been had trouble finding up to date information on prisma in production. The fargate deployment wouldn't connect.
  • k

    Krishna

    05/07/2019, 4:15 AM
    Hi all, Need some help in understanding what prisma deploy is actually doing. As in when I run the command
    prisma deploy
    what is it running? and how is it connecting to the database ?
  • l

    Lukas

    05/07/2019, 10:19 AM
    Hi, how do I set PRISMA_CONFIG on AWS ECS like this question? https://www.prisma.io/forum/t/postgress-connection-config-for-aws-ecs/3823
    h
    • 2
    • 2
  • m

    Morten Bo Rønsholdt

    05/07/2019, 11:45 AM
    hi folks! I have the following datamodel.prisma:
    Copy code
    type Business {
        id: ID! @id
        stores: [Store]
    }
    
    type Store {
        id: ID! @id
        name: String!
        business: Business!
    }
    I want to have a single mutation for updating both the
    Business
    and
    Store
    where the
    Business
    serves as the entrypoint like so:
    Copy code
    updateBusiness(
        data: {
            stores: {
                create: {
                    name: 'My store'
                }
            }
        },
        where: {
            id: 'some_business_id'
        }
    ) {
        id
        stores {
            name
            business {
                id
            }
        }
    }
    this works really well and I enjoy working with nested mutations. it makes the code much simpler. my challenge is how I implement authorization with this model. imagine a
    Person
    that is a member of a specific `Business`: I need to avoid that this
    Person
    creates a new
    Business
    or connects a
    Store
    from another
    Business
    . it's easy to add authorization on the
    updateBusiness
    mutation entrypoint via e.g. graphql-shield but once the
    Person
    clears the initial check, the
    Person
    can do whatever he/she wants via nested mutations further down. should I just drop using nested mutations or is there a neat solution to this via e.g. graphq-shield? I've managed to find a few people having the same issue but I don't see a good solution: https://github.com/prisma/prisma/issues/3901
    h
    • 2
    • 4
  • h

    Henry Guy Kemp

    05/07/2019, 12:57 PM
    Hi, I’m struggling today with tying these architectural pieces together. Specifically - I have two external graphql api’s, and a few Rest ones to query from my backend server. On my backend server I do authorisation, authentication, stitching, decorate my api, etc. Question is how should I integrate with the external graphql apis please? At moment I am looking at using apollo-client on my Prisma (or possibly Apollo) Server. Any suggestions most welcome!
    h
    • 2
    • 1
  • j

    Jesper O. Christensen

    05/07/2019, 1:31 PM
    Hi. I tried upgrading to 1.31 today. Went fine on my main project. But on a side project where i only wanna read data, i try to use
    prisma introspect
    but the result i get in that project is different? like i only get 62 files instead of 78 in the main project and the relations are wrong. How is that possible? am i lacking a dependency in the side project? I introspect a local mysql instance and use a globally installed prisma version 1.31 so those things should not have an impact Ive tried in 2 side projects and both generate a file different from the main project
    h
    • 2
    • 1
  • h

    Henry Guy Kemp

    05/07/2019, 1:44 PM
    Thanks - confirms what I was thinking. Scant documnentation/examples of this online.
  • a

    Anaet Hossain

    05/07/2019, 2:11 PM
    Hello Everyone, Nice to meet you all 🙂 🤝
    đź‘‹ 13
  • y

    Yehonatan Levi

    05/07/2019, 6:08 PM
    i have a very general question, given prisma generates my resolvers, how do i control the permissions?
    j
    l
    b
    • 4
    • 3
  • a

    Aiko Ramalho

    05/07/2019, 6:56 PM
    Is someone facing turbulence with Prisma today?
    n
    h
    • 3
    • 3
  • w

    William Kwao

    05/07/2019, 11:22 PM
    Has anyone tried implementing a login screen for prisma admin?
  • r

    rdc

    05/08/2019, 6:46 AM
    Is_there_a_limite_for_many_nested_connect_in_Mutations_
    h
    • 2
    • 6
  • r

    rooneyK

    05/08/2019, 11:51 AM
    Hi. We are currently doing an offline deployment of our prisma, running inside docker-compose. Everything is spinning up correctly, but during
    prisma deploy
    we get an error:
    Copy code
    'ENOTFOUND': request to <https://api.cloud.prisma.sh/> failed, reason: getaddrinfo ENOTFOUND api.cloud.prisma.sh api.cloud.prisma.sh:443
    . This makes sende, since we are offline. How can we bypass this check? Any help with this would be greatly appreciated.
    s
    • 2
    • 2
  • p

    Pedro Jardim

    05/08/2019, 2:20 PM
    I can not access my data from the Prisma Cloud or playground. I can open the prisma admin but no Data appears. Is loading forever. And cant do any deploy on it. Any one have the same issue?
    h
    • 2
    • 1
1...266267268...637Latest