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

    joao.santos

    11/14/2017, 12:15 PM
    Hey guys I have a question... How do I connect the type PatientDocumentation everytime I create a PatientProfile in a mutation? I can do that in Graph.cool GUI connecting the node, but how do I do it in a mutation?! Sorry i know this should be basic, but i cant connect the id with each other...
    Copy code
    type PatientProfile @model {
      createdAt: DateTime!
      id: ID! @isUnique
      updatedAt: DateTime!
      name: String!
      number: Int! @isUnique
      lastName: String
      lastViewed: String
      patientDocumentation: PatientDocumentation @relation(name: "DocumentationOnPatient")
    }
    Copy code
    type PatientDocumentation @model {
      hours12: String
      id: ID! @isUnique
      natural: String
      patientProfile: PatientProfile @relation(name: "DocumentationOnPatient")
      profile: String
      video: String
      withdrawn: String
      xray: String
    }
    m
    t
    • 3
    • 16
  • h

    huv1k

    11/14/2017, 1:23 PM
    Hey, what is best sollution to work with enums for fron-end? For example i have graphcool enum
    MODULES
    and want to use it in
    *.graphql
    and
    *.js
    files.
    n
    • 2
    • 2
  • a

    alexanbj

    11/14/2017, 1:51 PM
    hmm.. aren’t createdAt and updatedAt fields added automatically to types any more? Even if I haven’t updated my project?
    n
    • 2
    • 2
  • s

    SallyP

    11/14/2017, 3:17 PM
    I'm using Graph.cool online service
  • s

    SallyP

    11/14/2017, 3:17 PM
    is there a way to send a welcome email to the user?
    v
    p
    • 3
    • 6
  • c

    Chris S

    11/14/2017, 3:26 PM
    Hi I am looking at integrating a third party CMS to act as a glorified content editor which we would need to push content accross to my graph.cool as a content store that will be used to feed content to an external website. Am I right in thinking I would need to create a piece of middleware such as a serverless function to intercept the payload from the CMS system and subsequently make a graphql request to update the content in graph.cool directly or could a webhook/function hosted directly in graph.cool achieve thesame functionality?
  • s

    steveb

    11/14/2017, 3:29 PM
    can someone point me to details about logging and monitoring requests to our graph.cool API?
  • s

    starsinmypockets

    11/14/2017, 4:01 PM
    Why does
    graphcool init --schema <https://graphqlbin.com/hn-starter.graphql> --name Hackernews
    give me the error
    Unknown flag --schema
    m
    • 2
    • 1
  • k

    koddsson

    11/14/2017, 4:01 PM
    Hey! I'm tracking down a outdated peer dependency in my app and have narrowed it down to
    graphql-cli
    . It seems to have been updated on
    master
    but not published to npm. Could someone cut a patch release to npm? 🙏
    n
    • 2
    • 1
  • b

    bwoodlt

    11/14/2017, 4:02 PM
    Hello All! This is been cracking me nut… 😞 Any thoughts on why I’m getting
    [object object]
    when I ran my
    graphql
    subscriptions
    ?
    m
    • 2
    • 7
  • d

    divyendu

    11/14/2017, 4:26 PM
    How can I add password field to existing type, I need to hash the password. https://www.graph.cool/forum/t/adding-a-password-field-to-an-existing-user-type/1606
  • d

    donedgardo

    11/14/2017, 5:02 PM
    How do I add file type to my graphql.types?
  • e

    emattias

    11/14/2017, 5:02 PM
    For this query:
    Copy code
    merchant {
      foo{
        bar {
          baz{
            baa
          }
        }
      }
    }
    and
    bar
    does not exists, should the response be an object containing
    baz
    and
    baa
    keys (and
    baa
    is
    null
    ) or should
    bar
    be equal to
    null
    ? What is recommended graphql behavior?
  • e

    emattias

    11/14/2017, 5:08 PM
    Basically is it recommended that the response is:
    Copy code
    {
      "data": {
        "foo": {
          "bar": null
        }
      }
    }
    or
    Copy code
    {
      "data": {
        "foo": {
          "bar": {
            "baz": {
              "baa": null
            }
          }
        }
      }
    }
  • j

    jeff

    11/14/2017, 5:11 PM
    -.js
  • j

    jeff

    11/14/2017, 5:11 PM
    I’d like to pass a dynamic json file to chromeless to process page automation steps. Is this possible?
  • a

    arvin

    11/14/2017, 5:20 PM
  • a

    arvin

    11/14/2017, 5:22 PM
    when I
    Copy code
    graphcool init
    graphcool deploy
    it doesn't show up. It's only there if I start a new project from the website graph.cool
    n
    e
    • 3
    • 4
  • s

    steveb

    11/14/2017, 6:42 PM
    What does the Graphcool Framework mean for existing BaaS projects on graph.cool? Should we "convert" them? If so, what's the best way?
    a
    • 2
    • 3
  • s

    schickling

    11/14/2017, 7:40 PM
    💡 For the curious who are interested in learning more about how GraphQL servers work: https://blog.graph.cool/graphql-server-basics-the-schema-ac5e2950214e
    ❤️ 1
    🦜 4
    👏 1
  • g

    gerardsans

    11/14/2017, 7:41 PM
    Slides from yesterday at ngBucharest on Apollo Client 2.0 with Angular v5 + Material rc0 + subscriptions http://slides.com/gerardsans/ng-bucharest-apollo-v2 ✨🚀
    🙌 2
    🎉 1
  • g

    gerardsans

    11/14/2017, 7:42 PM
    and ofc using #graphcool
  • b

    bobbyt

    11/14/2017, 7:45 PM
    Hi, does Graphcool's subscription resolvers include subfields? I'm looking for help getting a (React Native/Apollo) subscription to work when a query subfield is updated on the server. I am using a subscription query for a chat application that works fine when a new message arrives or an existing one is updated:
    Copy code
    const newMessageSubscription = gql`
      subscription {
        Message(filter: { mutation_in: [CREATED, UPDATED] }) {
          node {
            id
            text
            createdAt
            sentBy {
              id
              name
            }
            receivedBy {
              id
              name
            }
          }
        }
      }
    `;
    This works (data is returned) when a new message arrives or an existing message field is updated (i.e.,
    text
    field). However, if a subfield such as
    receivedBy
    is updated on the server (indicating another user has read the message), the subscription does not return anything. Thanks in advance!
    n
    • 2
    • 2
  • t

    taizo

    11/15/2017, 1:24 AM
    I have been using graphcool BaaS, and now I would like to create same environment on my mac using graphcool framework. I have set up the framework and create same schemata. Then I want to import the data from graphcool BaaS to graphcool env on my mac. I could export data of BaaS, but I don't know how to import the data. Is there any advice?
    n
    • 2
    • 2
  • i

    iamclaytonray

    11/15/2017, 1:52 AM
    This is not GC related but I figured someone may be able to help me out. I’m currently using React & Apollo, along with GC, and I need some way to get the
    data
    object in my component’s
    constructor()
    . Does anyone know of an elegant way to do this? I haven’t tried wrapping it in a HOC yet so I’ll do that, which should work, but maybe someone has some insight that would help out
    n
    • 2
    • 4
  • m

    matty

    11/15/2017, 6:36 AM
    anyone else was able to get their graphcool algolia integration disabled so they could upgrade to Framework?
  • m

    matty

    11/15/2017, 6:37 AM
    i've emailed support but they don't have an answer yet...
  • m

    matty

    11/15/2017, 6:37 AM
    however I used the System API a couple of months ago to do this for one of my projects - but the mutation I used no longer works
  • m

    matty

    11/15/2017, 6:37 AM
    I could just start a fresh project but I'd lose all the data
  • m

    matty

    11/15/2017, 7:08 AM
    anyone else tried to deploy but it got stuck at "bundling functions"
1...426427428...637Latest