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

    Ozzie

    10/18/2017, 10:23 PM
    Yea, both of us have been getting errors when requiring graphcool-lib.
  • w

    welf

    10/19/2017, 1:09 AM
    Hi all! The use of `interface`s and `union type`s is at the moment not allowed in Graph.cool. But if I have, for example,
    type Dress
    ,
    type Shoes
    ,
    type Suit
    ,
    type TShirt
    , how can I put them into the list of field
    products
    in the
    type Cart
    to reference all products added to the shopping cart? With `union type`s or `interface`s I can unite all my product types under the
    type Product
    and then put them all into the list in
    products: [Product!]!
    field of the
    type Cart
    . What is the best or recommended practice to do it without `interface`s and `union type`s?
    p
    • 2
    • 1
  • l

    lastmjs

    10/19/2017, 2:18 AM
    I'm getting a Node module version mismatch in a function:
    Copy code
    Error: Module version mismatch. Expected 48, got 57.\n    at Error (native)\n    at Object.Module._extensions..node (module.js:597:18)
    a
    • 2
    • 19
  • o

    oxyoxy88

    10/19/2017, 3:54 AM
    Hi I'm using graphcool with react-apollo. Subscription in graphcool playground works but never works in apollo.
  • o

    oxyoxy88

    10/19/2017, 3:56 AM
    I mean updatedQuery function is never called in this.props.data.subscribeToMore(document: gql``, updateQuery: () {}
  • m

    m.b.iqbal

    10/19/2017, 5:04 AM
    Hi All, I am facing an issue with connect permissions. I have a User model and a favourite model. A user has many favourites. My concern is that if a user gets his authentication token he will be able to connect himself to anyones favourites using a connection mutation. I am not able to setup a connect permission that would stop a signed in user from connecting with anyone else’s favourite. Here is some further detail and what i have tried till now. Any help will be much appreciated. https://www.graph.cool/forum/t/connect-permission-for-nested-mutations/1292
  • e

    eliezedeck

    10/19/2017, 6:40 AM
    Hey guys, I see that the PRE_WRITE request pipeline has been deprecated. I'm looking into setting a private field (createdBy related to the calling user), which I want to be set by the server only. How do I do that?
    a
    • 2
    • 6
  • o

    oxyoxy88

    10/19/2017, 7:41 AM
    I have tried some subscription examples with my environments, but nothing worked.
  • o

    oxyoxy88

    10/19/2017, 7:42 AM
    https://github.com/graphcool-examples/react-graphql/tree/master/subscriptions-with-apollo-worldchat
  • o

    oxyoxy88

    10/19/2017, 7:42 AM
    https://github.com/graphcool-examples/react-graphql/tree/master/subscriptions-with-apollo-instagram
  • o

    oxyoxy88

    10/19/2017, 7:42 AM
    https://www.howtographql.com/react-apollo/8-subscriptions/
  • o

    oxyoxy88

    10/19/2017, 7:44 AM
    Am i doing wrong with something? I just cloned the code and yarn install yarn start but subscriptions never work
    o
    • 2
    • 3
  • o

    oxyoxy88

    10/19/2017, 7:45 AM
    and subscriptions on graphcool playground are always work normally I tried plain javascript websocket server and it worked so maybe there is a ploblem with apollo but I don't know exactly. I tried transport-subscription-ws with react-apollo and apollo-client2.0 but both didnt work I checked network tab of chrome developer tools and there were connection with websocket server but subscriptions dont work
  • l

    Luke Diebold

    10/19/2017, 8:08 AM
    Do i use RS256 or HS256 when using graphcool with auth0?
    n
    • 2
    • 1
  • a

    antho1404

    10/19/2017, 8:09 AM
    There is maybe a “bug” 🐛 on the local deployments, it looks like when we add a new model we need to restart the container. I don’t know if this is the expected behaviour or if it’s a bug, can someone confirm that, maybe it’s just for me
    d
    • 2
    • 7
  • m

    mulyoved

    10/19/2017, 10:00 AM
    Hi, trying https://github.com/graphcool/templates/tree/master/messaging/sendgrid example added to package.json "sendgrid": "^5.2.3" when try the sample in the playground, node created but email was not sent, function log say
    Copy code
    "logs":["START RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58 Version: $LATEST
    Unable to import module 'src\\sendmail\\sendEmail-lambda': Error
        at Function.Module._load (module.js:417:25)
        at Module.require (module.js:497:17)
        at require (internal/module.js:20:19)
        END RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58
    REPORT RequestId: 6c5d9f94-b4b3-11e7-8ce9-71e5fa3ccc58\tDuration: 1.42 ms\tBilled Duration: 100 ms \tMemory Size: 512 MB\tMax Memory Used: 20 MB\t
    "],"returnValue":{"errorMessage":"Cannot find module '/var/task/src\\sendmail\\sendEmail-lambda'","errorType":"Error","stackTrace":["Module.require (module.js:497:17)","require (internal/module.js:20:19)"]}}
    any idea?
    n
    • 2
    • 4
  • s

    samuell

    10/19/2017, 11:05 AM
    Hey, its a way to hide mutation/query in scheme?
    b
    n
    • 3
    • 2
  • j

    Jannis Pohlmann

    10/19/2017, 11:23 AM
    Hello hello. Is there some tool out there that can validate a schema written in GraphQL SDL?
  • m

    m.b.iqbal

    10/19/2017, 11:31 AM
    Hello All, Anybody knows how to get only a list of records having atleast one item in a related column. Like if i want users who have atleast one post. Where post belongs to user and user can have many posts?
    a
    • 2
    • 1
  • d

    divyendu

    10/19/2017, 12:22 PM
    Is there a way to create User from console? Without mutation? I get "add item" form for all custom types but User, File => system types
    n
    • 2
    • 2
  • j

    Jannis Pohlmann

    10/19/2017, 12:43 PM
    I’m trying to get
    apollo-codegen
    to work with Graphcool. It looks like the recently added
    @module
    directive (and
    @isUnique
    as well) break it:
    Copy code
    $ apollo-codegen introspect-schema <simple Graphcool endpoint> --output schema.json
    $ apollo-codegen generate types.graphql --target ts --schema schema.json
    .../types.graphql: Unknown directive "model".
    .../types.graphql: Unknown directive "isUnique".
    .../types.graphql: Unknown directive "isUnique".
    j
    • 2
    • 2
  • j

    Jannis Pohlmann

    10/19/2017, 12:44 PM
    I found an apollo-codegen issue which points to a no longer existent issue in Graphcool: https://github.com/apollographql/apollo-codegen/issues/118#issuecomment-302420019
  • j

    Jannis Pohlmann

    10/19/2017, 12:46 PM
    Does this issue still exist anywhere?
    n
    • 2
    • 7
  • s

    Sam Dickerman

    10/19/2017, 1:29 PM
    I'm following the getting started tutorial in the new docs for Vue: https://docs-next.graph.cool/getting-started/vue/apollo-shae2aighe In step five I run "graphcool deploy" and I'm prompted "Please choose the cluster you want to deploy to " Should I choose local or one of the regional clusters? Thanks
    n
    • 2
    • 5
  • d

    divyendu

    10/19/2017, 2:09 PM
    Hello! Can use some more help! https://www.graph.cool/forum/t/framework-one-to-many-custom-types-relation/1319 🙂
  • m

    mwickett

    10/19/2017, 2:51 PM
    I’m getting this error from graphcool framework cli (alpha)
    ✖ Unable to marshall request to JSON: Unable to marshall request to JSON: Parameter 'FunctionName' must not be null
    when I run
    graphcool deploy -t development
    n
    • 2
    • 2
  • m

    mwickett

    10/19/2017, 2:55 PM
    Now I’m getting
    Request could not be satisfied
  • m

    mwickett

    10/19/2017, 2:55 PM
    Probably just some instability
  • s

    senorcodecat

    10/19/2017, 2:57 PM
    Anyone else not able to access the console?
    t
    t
    +2
    • 5
    • 45
  • s

    senorcodecat

    10/19/2017, 2:57 PM
    Status shows up
1...380381382...637Latest