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

    Mahmoud MH

    12/16/2017, 3:59 PM
    Hi guys
  • m

    Mahmoud MH

    12/16/2017, 3:59 PM
    I wanna know how can you help me, and how can I help you! šŸ™‚
    šŸ’Æ 2
  • m

    Mahmoud MH

    12/16/2017, 4:00 PM
    I’m new here 😊
  • n

    nilan

    12/16/2017, 4:00 PM
    Welcome @Mahmoud MH, so cool to have you with us!!
  • m

    Mahmoud MH

    12/16/2017, 4:00 PM
    Thanks nilan
  • m

    Mahmoud MH

    12/16/2017, 4:00 PM
    I’m glad to be here
  • m

    Mahmoud MH

    12/16/2017, 4:01 PM
    But I need to get benefits from you, and may i can do anything with you!
  • d

    David Yin

    12/16/2017, 4:14 PM
    hey im having some trouble deploying https://github.com/graphcool/graphql-server-example myself to try. The documentation says to run garphcool deploy in the database folder but i get
    Copy code
    rror:   data should NOT have additional properties
        at Output.error (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/Output/index.ts:164:15)
        at Object.<anonymous> (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/ProjectDefinition/yaml.ts:43:9)
        at step (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:32:23)
        at Object.next (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:13:53)
        at fulfilled (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:4:58)
        at <anonymous>
    Exiting with code: 1
    n
    • 2
    • 2
  • d

    David Yin

    12/16/2017, 4:14 PM
    im not too sure what this means
  • t

    theory

    12/16/2017, 6:32 PM
    How would I write the corresponding gql tag for this mutation?
    Copy code
    type Mutation {
      createUser(name: String!, authProvider: AuthProviderSignupData!): User
    }
    ###########
    ## Inputs
    ###########
    
    input AuthProviderEmail {
      email: String!
      password: String!
    }
    
    input AuthProviderSignupData {
      email: AuthProviderEmail
    }
  • t

    theory

    12/16/2017, 6:33 PM
    this mutation works in graphiql. I'm just trying to make a corresponding client side mutation with gql
    Copy code
    mutation CreateUser {
      createUser(name: "tester2", authProvider: {email: {email: "<mailto:test@test.com|test@test.com>", password: "password"}}) {
        id
        name
      }
    }
    l
    • 2
    • 1
  • v

    Vinnie

    12/16/2017, 6:47 PM
    Mac question about Docker and Graphcool: why do, every time I launch Docker.app, the GC containers get spawned, too?
    a
    • 2
    • 3
  • a

    adamibaker

    12/16/2017, 11:33 PM
    is there anybody here who has gotten a working example of Graphcool + Apollo 2.0 + Auth0? I used this pattern with Apollo 1.0 and since trying to upgrade to Apollo 2.0, everything has broken.
    c
    • 2
    • 1
  • c

    ckelley

    12/17/2017, 8:31 AM
    Hey, question for the team regarding the 1.0 release. I was in the process of migrating my API from the legacy Graphcool to the framework/BaaS combo, now with the release of 1.0 i'm unsure if I should start migrating the database portion now or wait. Two questions: 1. I looked at PR #1318 with the roadmap, which mentions that we can expect a feature per week; that puts the 1.0 release 3.5 months out. Is this an accurate guess for when 1.0 will be fully supported? 2. Regardless of the timeframe, would it be better for developers in my position to keep building with the framework/BaaS mixture, or to start porting systems to the new db format? What can we expect to see to help with porting from BaaS -> database framework for 1.0? I'm pumped for the 1.0 release, been hanging around here for a while and I'm continually impressed at how fast you iterate + how well you've drilled down to figure out what devs actually need. Props for all the hard work. Excited for the future šŸš€graphcool
    c
    n
    • 3
    • 2
  • p

    preetb123

    12/17/2017, 11:48 AM
    @nikolasburk i am getting the following error while creating subscriptions for
    Link
    as in
    <https://www.howtographql.com/react-apollo/8-subscriptions/>
  • p

    preetb123

    12/17/2017, 11:48 AM
    Copy code
    TypeError: Cannot read property 'node' of undefined
        at Object.updateQuery (LinkList.js:47)
        at ObservableQuery.js:188
        at ObservableQuery.js:256
        at tryFunctionOrLogError (errorHandling.js:3)
        at ObservableQuery../node_modules/apollo-client/core/ObservableQuery.js.ObservableQuery.updateQuery (ObservableQuery.js:255)
        at Object.next (ObservableQuery.js:186)
        at SubscriptionObserver.next (zen-observable.js:154)
        at QueryManager.js:581
        at Array.forEach (<anonymous>)
        at Object.next (QueryManager.js:579)
        at Object.handler (client.js:105)
        at SubscriptionClient../node_modules/subscriptions-transport-ws/dist/client.js.SubscriptionClient.processReceivedData (client.js:420)
        at WebSocket.client.onmessage (client.js:374)
    n
    • 2
    • 1
  • p

    preetb123

    12/17/2017, 11:48 AM
    in
    updateQuery
    Copy code
    updateQuery: (previous, { subscriptionData }) => {
            console.log(subscriptionData);
            const newAllLinks = [
              subscriptionData.Link.node,
              ...previous.allLinks
            ]
            const result = {
              ...previous,
              allLinks: newAllLinks
            }
            return result
          }
  • p

    preetb123

    12/17/2017, 12:14 PM
    https://github.com/howtographql/react-apollo/issues/22
  • r

    rajit

    12/17/2017, 3:14 PM
    I ran a
    gc deploy
    , which involved a new field with a @migrationValue. I then created a new entry and ran
    gc deploy
    . The @migrationValue then got used again, overwriting the value I'd set on that new entry. To hopefully better explain:
    Copy code
    User [fields]:
    — id
    then I add a
    verified: boolean
    field with
    @migrationValue(value: true)
    . I run
    gc deploy
    and then create a new user with
    verified: false
    . New user:
    Copy code
    id: blah
    verified: false
    Then I run
    gc deploy
    again and when I fetch all users I see:
    Copy code
    id: blah
    verified: true
    Are @migrationValue's intended to overwrite values everytime they're run? This implies to me I'll have to remove all of my @migrationValue directives after running it once.
    n
    • 2
    • 3
  • d

    donald

    12/17/2017, 6:58 PM
    Has something with the way server side subscriptions work changed? I have a subscription that I'm pretty sure used to work that doesn't now
  • d

    donald

    12/17/2017, 6:58 PM
    Or, would someone be willing to give it a second look for me?
  • d

    donald

    12/17/2017, 7:04 PM
    Heh never mind my mistake
  • d

    donald

    12/17/2017, 7:04 PM
    Didn't have the env variable set in graphcool.yml for that function
  • i

    illuday

    12/17/2017, 9:37 PM
    Hey guys, I trying the new version, I made the choice of the typescript-basic (incl. database), I tried the mutation signUp and login, it always return me "Unexpected token T in JSON at position 0"; Have you an idea about this ?
    n
    • 2
    • 3
  • v

    Victor (ZeroSpace)

    12/17/2017, 10:07 PM
    Hello. šŸ‘‹ Can somebody please tell me how the create mutation will look like on a model (Building) with a relation to a model (Zone) which has a n-2-m relation with itself. type Zone @model { id: ID! @isUnique type: String! name: String! @isUnique createdAt: DateTime! updatedAt: DateTime! buildings: Building @relation(name: "ZoneInBuilding") connectedZones: [Zone!]! @relation(name: "ConnectedZones") } type Building @model { id: ID! @isUnique name: String! @isUnique createdAt: DateTime! updatedAt: DateTime! location: Location @relation(name: "BuildingOnLocation") zones: [Zone!]! @relation(name: "ZoneInBuilding") }
  • v

    Victor (ZeroSpace)

    12/17/2017, 10:08 PM
    Context: a building can have many zones, but a zone can have many zones in itself. I.e. a building has 3 different floors (zones) where each floor has different units (zones as well).
  • l

    Luke Diebold

    12/18/2017, 3:00 AM
    Should my .build folder be over 10gb? Is this why it takes over 15 minutes for graphcool to deploy?
    i
    a
    • 3
    • 10
  • t

    topaz

    12/18/2017, 3:54 AM
    anyone got a graphcool + react-apollo that does authorisation. I can take a look at?
  • s

    Steven Sacks

    12/18/2017, 4:32 AM
    Can you be more specific? ā€œDoes authorizationā€ is a bit vague.
  • d

    donedgardo

    12/18/2017, 5:42 AM
    Getting 504 errors on file api
1...474475476...637Latest