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

    dohomi

    02/07/2018, 7:13 AM
    Hello are there any issues with cloudfront again? I receive error message
    the request could not be satisfied
    at the moment
  • j

    Josef Henryson

    02/07/2018, 7:20 AM
    hi, is there anything like an SQL WHERE for GraphQL? I would like to do something like: mutation UpdateUser(name: $name) { updateUser(where: { name: $name }) … }
    a
    • 2
    • 4
  • c

    Christian

    02/07/2018, 8:27 AM
    With the Graphcool service there exists a "User(id)" and a "user" query. Wouldn't it be better to rename the "user" query to "me" to avoid problems? At least this would help with our current project... 🙂
    w
    • 2
    • 2
  • s

    siyfion

    02/07/2018, 11:03 AM
    I love the concept of Prisma, but I'm a little concerned about managing my Docker containers... eg. What happens if I need more DB perf? What about managing backups? etc. I appreciate that these aren't "Prisma" questions per-se, but it's stuff I'd like to discuss and think about before blindly building my next app around it!
    👍 3
  • s

    siyfion

    02/07/2018, 11:07 AM
    I could go on; what about updates to the docker images? Can I use AWS ECS without needing months of training? If not, what other options are there? GCP?
    a
    n
    • 3
    • 2
  • r

    rafaelcorreiapoli

    02/07/2018, 11:08 AM
    Hello. I think I’ve found something strange in Prisma I have this schema:
    Copy code
    type Technology {
      id: ID! @unique
      name: String!
      childTechnologies: [Technology!]! @relation(name: "ChildTechnologies")
      parentTechnologies: [Technology!]! @relation(name: "ChildTechnologies")
    }
    When trying to add a child to this technology with
    Copy code
    ctx.db.mutation.updateTechnology({
          where: {
            id: "techA"
          },
          data: {
            childTechnologies: {
              connect: {
                id: "techB"
              }
            }
          }
        }, info)
    The final result becomes:
    Copy code
    {
      "data": {
        "technologies": [
          {
            "id": "techA",
            "name": "My Technology Updated",
            "childTechnologies": [
              {
                "id": "techB"
              }
            ],
            "parentTechnologies": [
              {
                "id": "techB"
              }
            ]
          },
          {
            "id": "techB",
            "name": "Another Technology",
            "childTechnologies": [],
            "parentTechnologies": []
          }
        ]
      }
    }
    Where it should be
    Copy code
    {
      "data": {
        "technologies": [
          {
            "id": "techA",
            "name": "My Technology Updated",
            "childTechnologies": [
              {
                "id": "techB"
              }
            ],
            "parentTechnologies": []
          },
          {
            "id": "techB",
            "name": "Another Technology",
            "childTechnologies": [],
            "parentTechnologies": [
              {
                "id": "techA"
              }
            ]
          }
        ]
      }
    }
    n
    l
    • 3
    • 2
  • v

    Vendicto

    02/07/2018, 11:08 AM
    Hi there, who know how to upload to the graphcool user avatar (for example) use Apollo + react-native ?
  • p

    preetb123

    02/07/2018, 11:33 AM
    @Vendicto

    https://www.youtube.com/watch?v=0rroukJh6oQ▾

  • v

    Vendicto

    02/07/2018, 11:34 AM
    thanks!
  • p

    pokorson

    02/07/2018, 11:50 AM
    Hi, I have a problem setting up subscriptions with
    graphql-yoga
    and Prisma, I've used starter project and took
    subscriptions
    example from prisma repo. When tested in playground and db tab subscriptions works fine, but when I added them to my schema I'm not getting any message from server. That's how my mutation resolver look:
    Copy code
    sendMessage(parent, { type, message, chatId }, ctx, info) {
        return ctx.db.mutation.createMessage(
          {
            data: {
              chat: {
                connect: {
                  id: chatId,
                },
              },
              type,
              message,
            },
          },
          info
        );
      },
  • p

    pokorson

    02/07/2018, 11:50 AM
    and subscription:
    Copy code
    message: {
        subscribe: async (parent, args, ctx, info) => {
          return ctx.db.subscription.message({}, info);
        },
      },
  • p

    pokorson

    02/07/2018, 11:50 AM
    is there something more to setup subscriptions? Am I missing something?
  • p

    pokorson

    02/07/2018, 11:55 AM
    and subscription resolver gets called correctly
  • t

    Tsupol

    02/07/2018, 12:08 PM
    Hi, Is it worth switching to Prisma if I'm already familiar with graphql-server-express + sequelize?
    m
    • 2
    • 7
  • d

    David Darrell

    02/07/2018, 12:13 PM
    Hi All, I'm not sure if this is the right place to ask. https://www.howtographql.com/react-apollo/5-authentication/ But I was wonder what the
    You can verify that the new user is there by sending the users query in the dev Playground in the database project.
    would look like.
  • d

    David Darrell

    02/07/2018, 12:20 PM
    Copy code
    docker exec -it prisma-db mysql -u root --host 127.0.0.1 --port 3306 --password=prisma
    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1045 (28000): Access denied for user 'root'@'127.0.0.1' (using password: YES)
    n
    • 2
    • 1
  • d

    David Darrell

    02/07/2018, 12:25 PM
    Password was
    graphcool
    docs stated
    prisma
  • d

    David Darrell

    02/07/2018, 12:28 PM
    I've worked it out myself 🙂
  • m

    Moritz

    02/07/2018, 12:53 PM
    Hi, I have an issue which I havent encountered yet: When I have a 1-many relaytion like so:
    Copy code
    type Mother{
      id: ID! @unique
      children: [Children!]!
    }
    type Children{
      id: ID! @unique
      mother: Mother
    }
    and later change it to
    Copy code
    type Mother{
    id: ID! @unique
    children: [Children!]!
    }
    type Children{
    id: ID! @unique
    mother: Mother!
    }
    making the dependency required, I get the output error:
    Copy code
    Hooks:
    Checking, if schema file changed !
     ▸    MotherUpdateWithoutChildrenDataInput fields must
     ▸    be an object with field names as keys or a
     ▸    function which returns such an object.
    I get this issue even after running
    prisma delete
    and then running
    prisma deploy
    . Does anyone have any Ideas how to interpret this?
    n
    • 2
    • 2
  • v

    Vendicto

    02/07/2018, 1:29 PM
    When I try to send a file I catch 500 error: Failed to load https://api.graph.cool/file/v1/xxx: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access. The response had HTTP status code 500 -------- In data I have this
    Copy code
    {uri: "file:///path/CoreSimul…ocuments/8C027537-CFE5-47A4-8BFB-CF131DFE56A9.jpg", name: "IMG_0002.JPG", type: "image/jpeg"}
  • s

    schava

    02/07/2018, 1:56 PM
    Hi All, I am doing react native app using apollo client . mainly for web socket subscriptions in mind. I am able to get socket connection success when remote debug in chrome but not in mobile run. Will there be any difference in environment
  • s

    schava

    02/07/2018, 1:56 PM
    I get onDisconnected callback on SubScriptionClient object
  • m

    mplis

    02/07/2018, 3:13 PM
    I got into graphcool early last year and have used the BaaS for a couple of toy apps. I haven't really been following the latest developments so I'm a little confused about graphcool framework and prisma and where the BaaS fits in. Should I not be using the BaaS going forward? If not, what do I use?
    t
    • 2
    • 3
  • j

    juicycleff

    02/07/2018, 3:30 PM
    @juicycleff pinned a message to this channel.
  • m

    Moritz

    02/07/2018, 3:31 PM
    Hi, how can I update an optional property in typescript only if it is passed? I have a mutation with three optional connect ids, would like to include only those non empty in my update mutation. What is the recommended approach here?
    Copy code
    return ctx.db.mutation.updateBook(
          {
            where: { id },
            data: {
            author: {
              connect: {
                id: authorId
              }
            }
            cover: {
              connect: {
                id: coverId
              }
            }
          }
          }, info)
    Wherein
    authorId
    and
    coverId
    could optionally be empty. If I simple pass the empty parameters i get the
    You provided an invalid argument for the where selector
    error message.
    m
    j
    • 3
    • 24
  • m

    matthewdschulman

    02/07/2018, 3:46 PM
    Hey! I'm trying to make a simple change and deploy it to my service, but it's getting stuck on the "Bundling functions..." step indefinitely after I run the deploy command. I even tried letting it run overnight, and if eventually timed out. Any advice for what to do? I can't find anything online
  • m

    matthewdschulman

    02/07/2018, 3:46 PM
    It's strange, because everything was working fine up until a certain point last night
  • k

    Kimo

    02/07/2018, 3:57 PM
    Some help with graphcool email-password auth: I have setup and application and created a user, I can query the user and see their credentials but when I try to login, all I see is:
    Copy code
    {
      "data": {
        "authenticateUser": null
      }
    }
    m
    • 2
    • 10
  • r

    rajit

    02/07/2018, 3:59 PM
    Is there anyway, using the Graphcool Framework, to be notified when a client disconnects from the subscription API?
  • m

    matthewdschulman

    02/07/2018, 4:03 PM
    (fwiw--i was able to deploy the same code to a different service. so it seems to be an issue with my service)
1...562563564...637Latest