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

    eliezedeck

    06/04/2017, 6:45 AM
    my bad, it's the
    subscriptions-transport-ws
    package which needs to be 0.6.0, not the
    apollo-client
    👍 1
  • s

    samuell

    06/04/2017, 9:52 AM
    Hey, idk if i have bug but i cant scroll in list of schemes 😄
    s
    • 2
    • 6
  • y

    yus

    06/04/2017, 1:29 PM
    i havent seen that before
  • v

    vgrafe

    06/04/2017, 1:45 PM
    sorry about that - I have error messages suggesting something is wrong with the IDs , but indeed the IDs were different in the data.
    n
    • 2
    • 4
  • v

    vgrafe

    06/04/2017, 1:47 PM
    Store error: the application attempted to write an object with no provided id but the store already contains an id of cj357b3jh5oub0131pr6bdosl for this object.
  • k

    kudlajz

    06/04/2017, 2:55 PM
    Anyone using Apollo with Typescript? I need help 😕
    n
    • 2
    • 6
  • t

    typaza

    06/04/2017, 3:21 PM
    In the Apollo React docs http://dev.apollodata.com/react/queries.html#basics there are examples of fetching automatically when the component is shown, but I'd like to run a query when a button is clicked. I see an example to "re"fetch a query when a button is clicked, but I don't want it to query initially. I see there is a way to call mutations, but how do you call queries?
    n
    • 2
    • 4
  • a

    adrianocola

    06/04/2017, 3:23 PM
    Check this: http://dev.apollodata.com/react/queries.html#graphql-skip
  • k

    kuldar

    06/04/2017, 4:49 PM
    🤔🤥
    n
    • 2
    • 1
  • r

    ryand

    06/04/2017, 4:51 PM
    Is it possible to apply different authorization parameters/permissions based on the url? Backstory: as an admin, I want to seed my app with draft posts and then invite specific people to edit/manage/publish them by emailing them a link (without forcing them to create an account or sign in). The model I have in mind is Craigslist, where posts have secret urls that function as passwords, allowing anyone with the link to make changes. This functionality needs to live alongside normal authentication. So the same user who approved/published a post after receiving a secret url via email would need to sign in before creating a new post of their own.
    n
    • 2
    • 11
  • r

    ryand

    06/04/2017, 5:52 PM
    Final auth question for today: if I am using email/password auth and require email verification, would I have to create that step myself?
    n
    • 2
    • 1
  • m

    mel

    06/04/2017, 7:46 PM
    has anyone gotten googlebot to correctly fetch graph.cool content? even with a fully prerendered solution like prerender.cloud it executes the queries and returns the error

    https://puu.sh/waR7e/d9fb0a1c85.png▾

    h
    s
    n
    • 4
    • 16
  • a

    agartha

    06/04/2017, 9:15 PM
    Hi, just investigating the possibilities Graphcool offers me. I was wondering where cron jobs are on the road map, as they are mentioned in the docs...
    n
    • 2
    • 1
  • a

    agartha

    06/04/2017, 9:52 PM
    Also, files being publicly available and only protected by authentication on obtaining its secret is going to be a very big showstopper for using graphcool. Any news on that?
    n
    • 2
    • 13
  • a

    agartha

    06/04/2017, 10:03 PM
    And one more question, I see a serverless-webshop example using the serverless framework, but I see no added value above the inline functions possibilities that are already available on Graphcool. What's the reasoning?
  • w

    wallslide

    06/04/2017, 11:54 PM
    The inline functions are brand new
  • w

    wallslide

    06/04/2017, 11:55 PM
    A big reason to use external serverless functions is that you can put them in version control, and deploy them all at once
  • w

    wallslide

    06/04/2017, 11:56 PM
    also, you can easily use tools like webpack/babel to use the latest javascript features like async/await, and you can use any npm libraries you want
    👍 1
    n
    • 2
    • 1
  • p

    parker

    06/05/2017, 12:52 AM
    hey – I’ve been playing with the authentication-with-expo-and-auth0 example from graphcool-examples/react-native-graphql (https://github.com/graphcool-examples/react-native-graphql/tree/master/authentication-with-expo-and-auth0), and the example throws an error when trying to add a user to graphcool. It looks like one of the fields its trying to add doesn’t exist in the schema, and I’m a bit confused about what’s supposed to be happening as it seems to be trying to insert an object into one field on the mutation. Has anyone had success with that example?
    n
    • 2
    • 3
  • e

    eliezedeck

    06/05/2017, 3:05 AM
    I’m getting operations executed in an insanely long time, all queries are taking over 1500 ms
  • e

    eliezedeck

    06/05/2017, 3:05 AM
    it was about 350 ms just a few days ago, what’s going on?
  • e

    eliezedeck

    06/05/2017, 3:06 AM
    some queries take as high as 2.5 seconds
    n
    • 2
    • 7
  • m

    maxnachamkin

    06/05/2017, 3:34 AM
    Hey all, loving Graphcool so far!!
    n
    • 2
    • 4
  • e

    em.dinh

    06/05/2017, 4:07 AM
    hello, anybody help me, please? how to add data for json field?
    n
    • 2
    • 2
  • e

    eliezedeck

    06/05/2017, 4:31 AM
    It seems to be back to normal speed for me 👍
    👍 1
  • e

    eliezedeck

    06/05/2017, 5:56 AM
    @nilan I’m not sure if I’m doing something or not. When there is a data from subscription, the returned “id” of the data does not match the
    subId
    that was used to issue the request. In my case, the
    subId === "1"
    , while the returned
    “id” === “0”
  • e

    eliezedeck

    06/05/2017, 5:57 AM
    because of this, I’m getting the error:
    Copy code
    Uncaught TypeError: Cannot read property 'handler' of undefined
        at WebSocket.client.onmessage (client.js:215)
    in the console, and the subscription handler is obviously not called
  • e

    eliezedeck

    06/05/2017, 5:58 AM
    client.js
    corresponds to compiled version of https://github.com/apollographql/subscriptions-transport-ws/blob/master/src/client.ts
    n
    • 2
    • 2
  • f

    figo

    06/05/2017, 6:00 AM
    Hi everyone, good evening (morning etc), got a question on data creation in one-to-many relation. Let' say a TODO app: when a registered user create a new todo job, from I read from https://www.graph.cool/docs/reference/simple-api/one-to-many-edges-ofee7eseiy/, it will require two graphQL roundtrips. The first call just to create the TODO type job, and then a second call to addToTodoOnUser, so the relationship can be setup. Wonder if there's a way to do this in a single roundtrip 🙂 thanks!
    n
    • 2
    • 3
  • e

    eliezedeck

    06/05/2017, 6:06 AM
    it’s worth noting that I’m using
    subscriptions-transport-ws@0.6.0
1...216217218...637Latest