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

    alejandronanez

    06/22/2017, 1:30 AM
    I've seen some react (not native) tutorials but that's pretty much it tbh
  • a

    ajmakhl

    06/22/2017, 1:56 AM
    @alejandronanez have you looked at the examples made by graphcool? https://github.com/graphcool-examples/react-native-graphql
  • a

    alejandronanez

    06/22/2017, 1:59 AM
    ha, that's a good start actually!
    👍 1
  • a

    alejandronanez

    06/22/2017, 2:00 AM
    I think that is a good starting point 🙂
  • n

    niwat

    06/22/2017, 2:05 AM
    Hi, I need to run some cron tasks to fetch data from some apis, and add them to my graph.cool database (my setup is graph.cool + nextJs + react). I'm thinking of using nodeJs server to run my crons and data fetching operations. Should i use something like apollo graphql-server-express to mutate data on my node server? I'm pretty a beginner with nodeJs.
    n
    • 2
    • 2
  • v

    visualbbasic

    06/22/2017, 2:16 AM
    Hi guys
  • v

    visualbbasic

    06/22/2017, 2:16 AM
    In my relay project, I have several independent React component that I'd like to use
  • v

    visualbbasic

    06/22/2017, 2:17 AM
    but it does not accept edges and node that relay graphene creates by default
  • v

    visualbbasic

    06/22/2017, 2:17 AM
    is there a way to flatten queried object so
    Copy code
    {
      "edge": {
        "node": {
          "allStuff2": {
            "edge": {
              "node": {
                "prop3": "c"
              }
            }
          },
          "prop1": "a",
          "props2": "b"
        }
      }
    }
    becomes
    Copy code
    {
      "allStuff2": {
        "prop3": "c"
      },
      "prop1": "a",
      "props2": "b"
    }
  • a

    aetherall

    06/22/2017, 2:37 AM
    Keep having this error on the graphcool playground .... WebSocket connection to 'wss://subscriptions.graph.cool/v1/myprojectid' failed: Connection closed before receiving a handshake response
  • a

    aetherall

    06/22/2017, 2:58 AM
    I wrote a js fiddle with the issue https://jsfiddle.net/4f4LLa4h/1/
  • a

    aetherall

    06/22/2017, 3:03 AM
    https://demo.graph.cool/worldchat same here and not just for me .....
    c
    • 2
    • 1
  • d

    domthegrom

    06/22/2017, 4:51 AM
    speaking of that worldChat demo would it be pretty similar for React Naitve? main difference being giftedchat?
  • d

    domthegrom

    06/22/2017, 4:55 AM
    I want the real time functionality that the
    WorldChat
    demo has just for my RN app 😄 just want to make sure its do-able with gifted chat
  • h

    hueezer

    06/22/2017, 7:07 AM
    Is there a reason ENUMS must start with a capital? I wanted to create an enum for locale, like en-US, en-GB, en-AU etc and that format is not allowed
  • p

    ppatidar

    06/22/2017, 7:17 AM
    @nilan There any way to delete all the nodes of model using Mutation I got one url https://www.graph.cool/docs/reference/simple-api/deleting-nodes-fasie2rahv/ But above work using Id I want to delete all the notes at once
    ✅ 2
    n
    • 2
    • 2
  • t

    the_bluescreen

    06/22/2017, 10:40 AM
    Maybe, It’s off-topic but I have problem with apollo. If I use data from Querystring or Path on Clientside, It’s not calling graphql query (that means It’s not getting data) but when I refresh the page, It’s getting the data from graphcool.
  • t

    the_bluescreen

    06/22/2017, 10:40 AM
    I’m using next.js, react, apollo + graphcool
  • t

    the_bluescreen

    06/22/2017, 10:40 AM
    Is someone getting similar problem?
  • d

    darkbcx

    06/22/2017, 1:00 PM
    what is the best way to upload files to graph.cool?
  • t

    tomhut

    06/22/2017, 1:04 PM
    @darkbcx Graph.cool projects come with a File type in the Schema which is great for storing files https://www.graph.cool/docs/reference/file-handling/overview-eer4wiang0/
  • d

    darkbcx

    06/22/2017, 1:09 PM
    @tomhut : i develop a nativescript app and i try to upload photo using
    fetch
    . but i got 500 response code.
    Copy code
    JS: {
    JS:   "_bodyInit": "",
    JS:   "_bodyText": "",
    JS:   "type": "default",
    JS:   "url": "",
    JS:   "status": 500,
    JS:   "ok": false,
    JS:   "statusText": "Internal Server Error",
    JS:   "headers": {
    JS:     "map": {
    JS:       "null": [
    JS:         "HTTP/1.1 500 Internal Server Error"
    JS:       ],
    JS:       "connection": [
    JS:         "keep-alive"
    JS:       ],
    JS:       "content-length": [
    JS:         "0"
    JS:       ],
    JS:       "date": [
    JS:         "Thu, 22 Jun 2017 12:26:16 GMT"
    JS:       ],
    JS:       "server": [
    JS:         "akka-http/10.0.5"
    JS:       ],
    JS:       "via": [
    JS:         "1.1 <http://5bbe31b991a19517db24426ef2d14391.cloudfront.net|5bbe31b991a19517db24426ef2d14391.cloudfront.net> (CloudFront)"
    JS:       ],
    JS:       "x-amz-cf-id": [
    JS:         "0JnDE56wnc90wnfu7DY17VaYcdhrPskk63dVMZHgT6PvWjrl0I8zkw=="
    JS:       ],
    JS:       "x-android-received-millis": [
    JS:         "1498134376838"
    JS:       ],
    JS:       "x-android-response-source": [
    JS:         "NETWORK 500"
    JS:       ],
    JS:       "x-android-selected-protocol": [
    JS:         "http/1.1"
    JS:       ],
    JS:       "x-android-sent-millis": [
    JS:         "1498134376276"
    JS:       ],
    JS:       "x-cache": [
    JS:         "Error from cloudfront"
    JS:       ]
    JS:     }
    JS:   }
    JS: }
  • d

    darkbcx

    06/22/2017, 1:11 PM
    Copy code
    fetch('<https://api.graph.cool/file/v1/cj3rp40vd64ho0113z6fynxxm>', {
          method: 'POST',
          body: data
        }).then(response => {
          console.log(JSON.stringify(response, null, 2))
          return response.json()
        }).then(file => {
          console.log(file);
        }).catch(err => {
          console.log('err : ', err);
        })
    n
    a
    • 3
    • 4
  • p

    picosam

    06/22/2017, 2:36 PM
    Hello all! Anyone used Apollo's
    watchQuery
    in an Angular Router Data Resolver before?
  • d

    dk0r

    06/22/2017, 2:48 PM
    I'm using learnapollo.com and am a bit confused about the
    Filtering objects with fragments
    section @ https://www.learnapollo.com/tutorial-react-native/react-native-04.
  • d

    dk0r

    06/22/2017, 2:48 PM
    The article explains the use of fragments for filtering as:
    This will make sure that only the required fields of the pokemon object get passed to PokemonCard
  • d

    dk0r

    06/22/2017, 2:49 PM
    But doesn't the fragment's definition already define exactly what data is required?
  • d

    dk0r

    06/22/2017, 2:49 PM
    If a component's fragment already defines the exact data that the component will need, then why do I need to also use that same fragment as a filter for the data?
  • d

    dk0r

    06/22/2017, 2:50 PM
    It seems redundant to me and so I think I may be missing the point..
  • m

    mmw

    06/22/2017, 2:53 PM
    Ive been using relay but I think what may be happening is when you have a fragment and you pass it's variable into the component it will pass the entire object (so if you have two fragments on a type one asking for
    name
    the other asking for
    id
    ) both components are fed the object with both
    name
    and
    id
    . Using a filter will make sure the object passed contains only the info requested (relay does this automatically)
1...240241242...637Latest