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

    mikedklein

    09/24/2017, 3:16 PM
    I can't seem to find it in the docs but does the cli have the ability to work with an existing project and not just a new one?
  • m

    mikedklein

    09/24/2017, 4:02 PM
    Man I am really struggling getting the serverless functions to work I was going to use them to geocode addresses I figured out the node version is 4.8.4 and I figured I should be able to use the
    https.get
    method to make the request but it just isn't working
    Copy code
    const https = require('https');
    module.exports = function (event) {
      const GEOCODE_API = '<https://maps.googleapis.com/maps/api/geocode/json?>';
      const API_KEY     = 'key=<MYGOOGLEAPIKEY>';
      const STREET      = event.data.street;
      const CITY        = event.data.city;
      const STATE       = event.data.state;
      const ZIP         = event.data.zip;
      const ADDRESS_KEY = 'address=' + STREET + '%20' + CITY + '%2C%20' + STATE + '%20' + ZIP;
      const URL = GEOCODE_API + API_KEY + '&' + ADDRESS_KEY;
      https.get(URL, (res) => {
        console.log('statusCode:', res.statusCode);
        console.log('headers:', res.headers);
    
        res.on('data', (d) => {
          console.log(d);
        });
    
      }).on('error', (e) => {
        console.error(e);
      });
    }
    n
    • 2
    • 3
  • m

    mikedklein

    09/24/2017, 4:33 PM
    Also noticing some strange behavior in that https://tehsis.github.io/webtaskio-canirequire/#axios shows axios is available but when i require it is undefined unlike in the validator which comes in fine just like in the example video.
    n
    • 2
    • 17
  • r

    Rippo

    09/24/2017, 5:38 PM
    looking at a demo/help/tutorial to orchestrate multiple tests using chromeless and serverless AWS lambda. what does people out there use and how do you collate and show test results?
  • s

    Stephen

    09/24/2017, 6:43 PM
    _nilan_Not_sure_what_i_am_missing_in_my_image_upload_with_Next_and_Graph_cool____.js
  • s

    Stephen

    09/24/2017, 6:44 PM
    @nilan Thoughts on that image upload? ⬆️
    n
    m
    • 3
    • 9
  • c

    coolboyjules

    09/24/2017, 8:53 PM
    hey how can i make a new schema extension function? Do I have to opt into the beta? I'm not exactly sure where to put the function
    n
    h
    • 3
    • 2
  • c

    coolboyjules

    09/24/2017, 8:55 PM
    basically where do i put the Graphcool Function code here? https://www.graph.cool/docs/reference/simple-api/custom-mutations-thiele0aop/
  • l

    lancej

    09/24/2017, 11:00 PM
    Is there an issue with deleting data via the console... In the chrome debuggin tool, I see
    Unhandled rejection TypeError: Cannot read property 'props' of undefined
  • l

    lancej

    09/24/2017, 11:04 PM
    Checked the schema and do have a mandatory contstraint which will prevent the delete (I thought that I had not set it to such)... previously I saw a valid graphql error message telling me that, but now this one shows up
  • j

    joshjoe

    09/25/2017, 1:20 AM
    How can I pass the current user id to a query? I’m using apollo on React Native.
    • 1
    • 1
  • j

    joshjoe

    09/25/2017, 2:20 AM
    When creating a new document in Graph.cool is there a way to automatically use the relationship? Here is an example scenario. All of my Reports must have a User. When I create a Report I want it to use the user that is making the request. Graph.cool knows who that user is because it is in the authorization header. My permissions are setup so that I couldn’t even make the request if I wasn’t logged in.
  • j

    joshjoe

    09/25/2017, 2:51 AM
    I just used this https://www.graph.cool/forum/t/specify-permissions-for-create-actions/387/2 and then passed the userId to the mutation. It doesn’t look like there is a way to do this automatically or by a graph.cool function (yet)
  • s

    stephenhandley

    09/25/2017, 2:55 AM
    I'm confused as to how this query works without specifying the input query params (
    $node_id
    ,
    $user_id
    ) https://github.com/graphcool-examples/graphcool-examples/blob/master/webshop/permissions/User.update-delete.graphql
    n
    • 2
    • 6
  • a

    Amanda

    09/25/2017, 6:02 AM
    Hey guys, I’ve been using the functions tag and have had trouble updating and saving functions. It gets stuck loading forever and throws some random errors to the console. Has anybody else had the same issues?
    👍 1
    n
    d
    • 3
    • 2
  • c

    Clay

    09/25/2017, 6:34 AM
    Hi everyone, I'm trying to implement GraphCool auth with iOS Facebook SDK. I found the example here https://github.com/graphcool-examples/functions/tree/master/authentication/facebook-authentication I was able to get the Facebook Access Token with the facebook sdk. I have no idea what is
    Schema Extensions
    and couldn't find any way to do it in the console. I read the readme, but I still have no idea how to implement this. If anyone can point me to the right direction that would be great. Thanks!
    n
    • 2
    • 1
  • v

    vladblindu

    09/25/2017, 7:35 AM
    Hello. I'm new here, so please excuse me if I do things the wrong way. I am also new to graphql which makes things worse. I googled for half an hour now but wasn't able to find an answer to this error: Variables could not be parsed as json. I am using graphql-request and I'm sending a absolute legitimate variables object through the client.request method. Has anybody encountered this kind of issue.
    n
    • 2
    • 6
  • y

    yunjia

    09/25/2017, 11:07 AM
    @nilan I am trying to create a new subscription function from console. But after I clicked the update function button, the spinning on the screen doesn’t go away. I saw some error messages from the browser console:
    Copy code
    <http://2d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/|2d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/> Failed to load resource: the server responded with a status of 502 ()
    edit:1 Fetch API cannot load <https://d0b5iw4041.execute-api.eu-west-1.amazonaws.com/prod/create/>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<https://console.graph.cool>' is therefore not allowed access. The response had HTTP status code 502. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    edit:1 Uncaught (in promise) TypeError: Failed to fetch
    Do you have any idea where is the problem? Many thanks.
    a
    • 2
    • 2
  • h

    halborg

    09/25/2017, 11:16 AM
    Any known issues with Enums? I’m trying to add a new one, but can’t query it for some reason, in spite of the query being identical to an old one which still works:
    a
    n
    • 3
    • 5
  • j

    joar

    09/25/2017, 12:50 PM
    Hmm, no way to use relative imports in auth0 right?
  • j

    joar

    09/25/2017, 12:53 PM
    So lets say I have some heavy business logic which needs to be tested and live in its own file, is there no way to include it in inline / auth0 extend / graphcool-cli code?
    n
    a
    • 3
    • 6
  • s

    steved

    09/25/2017, 1:00 PM
    “Next Steps” links from this page are broken: https://docs-next.graph.cool/getting-started/react/relay-sot2faez6a
    n
    • 2
    • 2
  • m

    mikedklein

    09/25/2017, 1:08 PM
    Is there documentation on using the cli with an already existing project? Or is that not supported yet?
    n
    n
    • 3
    • 4
  • j

    jacqui

    09/25/2017, 1:19 PM
    I'm having a problem passing authentication headers through to my functions. The auto-generated mutations work (e.g. allTypeName()) as expected with an auth token tho, am i missing something?
    n
    • 2
    • 2
  • c

    chrishurlburt

    09/25/2017, 3:03 PM
    hey everyone -- im trying to set up a subscription in node.js via websockets. the subscription query is correct and works in the graph cool console. I'm able to successfully create a connection and send my subscription getting back the "subscription_success" type, however i'm not receiving data. any ideas?
    d
    • 2
    • 3
  • m

    miho

    09/25/2017, 3:28 PM
    Good day .. maybe who knows what this mean ? : "The specified default value 'NullGCValue()' is not a valid Enum Value for this field."
  • m

    miho

    09/25/2017, 3:29 PM
    while deploy from cli
    n
    • 2
    • 1
  • a

    alan

    09/25/2017, 3:34 PM
    hi all, none of my text editors recognize my .graphcool files. Is this the case for everyone?
    n
    • 2
    • 1
  • m

    mwickett

    09/25/2017, 5:23 PM
    How do I fire a mutation with
    graphcool-lib
    that includes variables? Does something like
    request.api(mutation)(variables)
    work?
    a
    • 2
    • 3
  • m

    mwickett

    09/25/2017, 5:26 PM
    It’s not well documented.
1...349350351...637Latest