https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • a

    Aguilar

    02/05/2018, 11:48 PM
    Copy code
    mutation ($valueId: ID!, $objects: [ValueobjectsValueObject!]!) {
        updateBlog(id: $valueId, objects: $objects) {
          id
          objects {
            id
            fields {
              id            
              value
            }
          }
          updatedAt
        }
      }
  • a

    Aguilar

    02/05/2018, 11:48 PM
    But updatedAt is not updated.
  • m

    Mr.niko.la

    02/06/2018, 3:01 AM
    hey guys I am building a simple express server that does a standard api call. How do I get the resolver to trigger everytime i call the api? and would I be using prism to then store that data in GraphQL standard??
    m
    • 2
    • 1
  • f

    francois

    02/06/2018, 5:58 AM
    hi guys. trying to upgrade my graph cool project to the Project plan. Getting a JS console error shortly after that and never being able to enter payment details
    n
    • 2
    • 1
  • j

    Josef Henryson

    02/06/2018, 9:36 AM
    I think I’m going insane… Trying to update a nested object, but when I do, it creates a new instance of the nested type. updateUser( id: $id, firstName: $firstName, lastName: $lastName, mobile: $mobile, address: { postalCity: $postalCity, postalCode: $postalCode } ) { id } Is above syntax wrong for updating existing address? Please help me with the correct syntax 🙂
  • j

    Josef Henryson

    02/06/2018, 9:44 AM
    do I really have to write updateAddress separately? Or is there a way for nested updates?
    a
    • 2
    • 7
  • f

    Fi1osof

    02/06/2018, 9:52 AM
    Hi! Where is prisma changelog?
    n
    j
    • 3
    • 16
  • e

    ericsonluciano

    02/06/2018, 10:22 AM
    Does anyone here have guide to deploy a prisma in Linode or Digital Ocean? or AWS. Yeah i ask this since i’m more on front-end developer / ui designer and configuring backend and server stuff is one of my problem 🙂
    a
    n
    • 3
    • 14
  • e

    Emi

    02/06/2018, 2:15 PM
    I'm getting this error after updating to prisma 1.1.3:
    Copy code
    [Network error]: TypeError: results.filter is not a function
    Error: results.filter is not a function
        at Object.checkResultAndHandleErrors (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\errors.js:69:36)
        at Object.<anonymous> (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:89:52)
        at step (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:40:23)
        at Object.next (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:21:53)
        at fulfilled (C:\workspace\cool-project\server\node_modules\graphql-tools\dist\stitching\delegateToSchema.js:12:58)
        at <anonymous>
        at process._tickCallback (internal/process/next_tick.js:188:7)
    Any thoughts? GitHub issue: https://github.com/graphcool/prisma/issues/1833
  • f

    Fi1osof

    02/06/2018, 3:09 PM
    @nilan is new prisma degradated with relations? In relation mutations lost update and upsert. http://joxi.ru/v29OdyEiGbgvwr
  • n

    nilan

    02/06/2018, 3:12 PM
    Hey @Fi1osof, please create a new bug report here with more information: https://github.com/graphcool/prisma/issues/new?template=bug.md Also, please don't highlight me directly 🙂 You can read more about our Community Guidelines here: https://gist.github.com/marktani/13a6ac8ac9b87b821fa753480de5b529 Thanks 🙌
  • f

    Fi1osof

    02/06/2018, 3:12 PM
    Nilan, Sorry
    💚 1
  • e

    Emi

    02/06/2018, 3:21 PM
    Why when running
    prisma info
    I get the HTTP endpoint
    <http://localhost:4466/server/dev>
    and Playground is using
    <http://localhost:4000>
    ? Shouldn't they be the same? I'm actually using
    <http://localhost:4000>
    with Apollo.
    k
    • 2
    • 3
  • m

    Moritz

    02/06/2018, 3:32 PM
    Hi, does anyone know how graphql subscriptions can be implemented on android? Are they currently or planned to be supported by apollo android client?
    j
    n
    • 3
    • 5
  • e

    Emi

    02/06/2018, 4:19 PM
    If I have a Post type with an
    onDelete: CASCADE
    and another Comment type related to a Post, are the related Comments deleted automatically when deleting a Post? Is that the idea? Not sure if this is already implemented.
  • m

    Moritz

    02/06/2018, 4:40 PM
    Hi guys, is there a way to batch- update a connect field? I would like to add a batch of participants to a group like so:
    Copy code
    return ctx.db.mutation.createGroup(
          {
            data: {
              participants:{
                connect: {
                  ids: participants
                }
              }
            },
          },
          info
        )
    Herein, participants is an array containing the user ids I would like to add. However, using connect produces an error when passing an array interpreting the input as a single id. Would connectMany do the trick? tried that but also got errors.
  • f

    Fi1osof

    02/06/2018, 5:06 PM
    @Moritz connect: [{ id: $id }, { id: $id2 }.....]
  • m

    Moritz

    02/06/2018, 5:31 PM
    @Fi1osof thx, i understand the expected syntax now. However, what would be the best way to parse my params in typescript? so far, i have held the input of my mutation to be an array of ides
    participants: [ID]!
    with an arbitary number of added participants. is there a quick&dirty typescript syntax to parse this ID- array to the required object array? Or should I change my input type? looping throug the ID-array seems really ugly. Can anyone tell me what would be the best practice here?
    f
    • 2
    • 3
  • k

    Kimo

    02/06/2018, 6:10 PM
    Trying to go thru the graphcool (https://www.graph.cool/docs/quickstart/) docs but the "Graphcool Basics" link is redirecting to a broken link(https://www.prismagraphql.com/docs/quickstart/basic/basic/basic-xil8ahdayo)
  • s

    sorenbs

    02/06/2018, 6:25 PM
    If anyone is interested in using Prisma together with VulcanJS, then there is an ongoing effort to make this happen. Consider contributing in https://github.com/VulcanJS/Vulcan/issues/1859 😄
    👍 2
  • f

    Fi1osof

    02/06/2018, 6:26 PM
    Who know how set prisma container system time? Need Europe/Moscow timezone
  • p

    peter

    02/06/2018, 7:48 PM
    are there any examples that show how to integrate a prisma service with something like a 3rd party API? I am trying to figure out how to build a web scraping application that handles events (new scrape requests) and responds with GraphQL mutations/queries
    h
    • 2
    • 18
  • e

    Emi

    02/06/2018, 7:49 PM
    Could anyone confirm if cascading deletes are working with Prisma 1.1.3? I'm continuing getting this error:
    The change you are trying to make would violate the required relation
    n
    • 2
    • 6
  • s

    senorcodecat

    02/06/2018, 7:56 PM
    How do you get support for paid tier on graphcool cloud?
    n
    • 2
    • 1
  • h

    huv1k

    02/06/2018, 10:01 PM
    Its possible to get random results from some query? So every query i get posts by random? I know there is
    orderBy
    but random? 🙂
    n
    • 2
    • 2
  • t

    tfiwm

    02/06/2018, 10:28 PM
    Is there a way to get a permanent token in prisma?
    m
    n
    • 3
    • 5
  • w

    wesbos

    02/07/2018, 1:55 AM
    Anyone working with the auth example where you have the
    me
    query? It throws an error when the user ins’t logged in - doesn’t seem the best way to handle this because it breaks my app - what should I do instead?
    m
    • 2
    • 10
  • k

    Kevin S

    02/07/2018, 2:50 AM
    Is it possible to export/download a complete project hosted on graph.cool so I can run a local dev instance?
  • s

    shuo

    02/07/2018, 3:46 AM
    hey guys, I'm going through
    <https://www.prismagraphql.com/docs/quickstart/frontend/react/apollo-shaek6eina>
    and I'm encountering
    couldn't find prisma.yml file. Are you in the right directory?
    while attempting to
    prisma deploy
    in
    /database
    .
    n
    • 2
    • 1
  • t

    Tavo

    02/07/2018, 6:48 AM
    The field accountIds must specify the @migrationValue directive, because its type was changed or it became required: @migrationValue(value: "42")
    Any reason why I can’t migrate a list of strings ? I thought I don’t need a migrationValue directive for lists
    c
    • 2
    • 1
1...561562563...637Latest