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

    Mehmet Onur Sagir

    08/28/2019, 6:21 PM
    Is the grapQL schema as a datasource being dropped in v2?
  • i

    Isaac Weber

    08/28/2019, 8:19 PM
    I seem to be having a problem with passing env variables in prisma 1.34.7. I have an .env file in the root of my project with
    PRISMA_SECRET
    and
    PRISMA_ENDPOINT
    set.
    prisma deploy
    and
    prisma token
    work as expected. However after pasting in the token into graphql playground I am getting token is invalid when running queries.
    t
    • 2
    • 3
  • l

    Levar Berry

    08/29/2019, 1:17 AM
    I just created a new server and service on Prisma Cloud ... I am not able to get into the Prisma Admin .. inside the JSConsole .. I see "..INVALID TOKEN" .. also same error when trying the playground. Not sure what to do since this is hosted
    i
    s
    • 3
    • 6
  • r

    Ren

    08/29/2019, 3:05 AM
    was this ever actually fixed? It says it was fixed but I'm getting the same exact issues. https://github.com/howtographql/howtographql/issues/878
  • j

    James

    08/29/2019, 7:13 AM
    I switched a prisma instance from postgres to mongodb and found that a certain type of relationship queries isn't available. on many to many I used to have 'relatedItem_none' and 'relatedItem_any' as queries parameters but now I only have 'relatedItem_some'. I was unable to find this in the docs. Anybody have some clues for me? Have i gotta write my datamodel diferently? All my relations are defined as
    @relation(link:INLINE)
    because after switching to mongo prisma deploy insists its the only valid value.
    t
    • 2
    • 3
  • m

    Martí Crespí

    08/29/2019, 9:39 AM
    Hi guys, someone has experienced any problem like that using prisma-nexus? https://github.com/prisma/nexus-prisma/issues/369
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:03 PM
    Hi Guys, I'm having a problem with 'managementApiSecret' on my local Prisma Server Is here a good place to ask for help?
  • i

    Ivor

    08/29/2019, 4:03 PM
    @Leonardo Meneguzzi Yep.
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:05 PM
    so, I testing prisma server and works well, I can access the playground and the _admin dashboard too then I put this argument on the docker-compose file
    managementApiSecret: test-passwd
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:05 PM
    then I rebuild my docker and works well
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:05 PM
    after this on my prisma.yml I add
    secret: test-passwd
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:05 PM
    and the prisma deploy its working too
  • i

    Ivor

    08/29/2019, 4:06 PM
    you need to start your docker container with the env variable, like so:
    PRISMA_MANAGEMENT_API_SECRET=your_secret docker-compose up -d
  • l

    Leonardo Meneguzzi

    08/29/2019, 4:06 PM
    I will try, I put this in a
    .env
    file but I will try for this way
    d
    i
    f
    • 4
    • 43
  • i

    Ivor

    08/29/2019, 4:08 PM
    Create
    PRISMA_MANAGEMENT_API_SECRET
    in .env, put
    ${env:PRISMA_MANAGEMENT_API_SECRET}
    in prisma.yml then in docker-compose.yml put
    managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET}
    and finally spin up your docker container with the command I put above.
    l
    • 2
    • 1
  • j

    Jeremiah

    08/29/2019, 9:14 PM
    is there a way to make a multiple field unique constraint?
  • a

    Andrej Lacko

    08/30/2019, 8:14 AM
    hello I need to pass cookie with login data in graphql playground desktop mac app, is there any possibility to achieve this?
    f
    • 2
    • 1
  • b

    Bram Zijp

    08/30/2019, 10:21 AM
    Could someone tell me why the prisma client is being injected through the context of the GraphQL Server in many examples? Other then easy access through the context parameter in resolvers, is there any other benefit?
    d
    • 2
    • 1
  • n

    Nikhil

    08/30/2019, 12:20 PM
    is there any way to increase timeout for Prisma?. I am currently using 1.30.1.
  • r

    rod750

    08/30/2019, 8:48 PM
    Hi guys, I'm having trouble finding what's causing an error, someone could help me, please? Thank you https://www.prisma.io/forum/t/variable-x-got-invalid-value-field-0-is-not-defined-by-type/7793
  • c

    Corey Snyder

    08/31/2019, 12:08 AM
    When you save data like this:
    Copy code
    let updatedProduct = await context.prisma.updateFlightController({
              where: {
                id: productId,
              },
              data: {
                images: {
                  create: {...imgObj, postedBy: { connect: { id: userId } } }
                }
              }
            })
    It successfully creates a new image and attaches it to the flight controller, but the
    updatedProduct
    that is returned does not have the image on it. Is there an easy way to get that? In comparison if I save a new flight controller I get back the new flight controller object.
  • k

    KishanAlchemy

    08/31/2019, 9:14 AM
    Can anyone help me to upload an image through graphql in swift? I use apollo library using
    pod 'Apollo', '~> 0.15.0
    pod.
  • d

    Dave Martinez

    09/01/2019, 2:34 AM
    Hi, is it possible to delete a single model without using a unique field, and returns its id? The problem I'm encountering is that I'm using the DeleteMany query then I only get the BatchPayload response which is {count: x}. What I want to try and do is to return the id of the deleted model. Also what's the convention in GraphQL of return values when deleting? Thanks
  • d

    Desmond

    09/01/2019, 7:55 AM
    hi guys,
  • d

    Desmond

    09/01/2019, 7:56 AM
    i am trying to install prisma latest but getting this error
  • w

    wuichen

    09/02/2019, 6:03 AM
    i have been trying out prisma for the past couple month and its working out great! however, seems like prisma 2 is coming soon. should i wait for prisma 2 or start using prisma for my production project? im currently using typeorm with postgres
    d
    • 2
    • 1
  • c

    Corey Snyder

    09/02/2019, 2:12 PM
    Is anyone here familiar with
    Nested Relation Mutations
    ? My question is: When saving an image like below to a product, Is there a way to easily get the ID of the newly created image object? In this example I get the updated product ID but not the image that was created.
    Copy code
    let updatedProduct = await context.prisma.updateFlightController({
              where: {
                id: productId,
              },
              data: {
                images: {
                  create: {...imgObj, postedBy: { connect: { id: userId } } }
                }
              }
            })
  • h

    Heng Gek

    09/02/2019, 2:55 PM
    Hi, I tried both Prisma and Apollo tutorials. It seems like Prisma is a combination of Apollo Server + Apollo Graph Manager. I wonder how can they work together? thanks
  • s

    Sasa Mocic

    09/02/2019, 4:02 PM
    Hello everyone, can anyone help me a bit with certain problem I ran into after I added secret to yml file?
    h
    • 2
    • 4
  • h

    Haack

    09/02/2019, 4:47 PM
    Hey quick question about doing count aggregation in prisma v1. Is it possible to get the count of a type (not on a connection) matching a query. E.g. total number of users with age > 18?
1...307308309...637Latest