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

    derbingle

    05/23/2017, 1:44 PM
  • t

    tfiwm

    05/23/2017, 2:04 PM
    CL:I graphcool init opens a the authentication window but nothing happens
  • t

    tfiwm

    05/23/2017, 2:05 PM
    chrome console -> 2update Failed to load resource: the server responded with a status of 502 () auth?cliToken=cj31msd5x000088q9e1pq8tz3&authTrigger=init:1 Fetch API cannot load https://cli-auth-api.graph.cool/prod/update. 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. app.cdd4e6b22f5302fa4bda.js:33 Uncaught (in promise) TypeError: Failed to fetch
    n
    j
    n
    • 4
    • 9
  • r

    richeterre

    05/23/2017, 2:13 PM
    Suppose I want to query a list of posts that don’t belong to my currently authenticated user. Can I do something like this, and how would I get the current user’s ID? Do I have to run a separate query first?
    Copy code
    posts: allPosts(filter: {
        user: {
          id_not: <current user ID>
        }
      }) {
        id
        title
        body
      }
    }
    n
    c
    • 3
    • 14
  • n

    nikolal

    05/23/2017, 2:22 PM
    @aditya__. Apolo is easier to set up and learn. Relay Modern ( second version of RelayJS ) is released few days ago, so it is good investment for the future. Both are good frameworks.
    ✅ 1
  • n

    nilan

    05/23/2017, 2:23 PM
    Hey everyone, we're experiencing 502 and 504 errors for some queries to the Simple API currently and are already looking into the cause and ways to fix these issues. Stay tuned! 🙂
    👍 5
    ✅ 2
    🙌 1
    j
    • 2
    • 4
  • t

    tfiwm

    05/23/2017, 2:24 PM
    great! thx
  • g

    gustavo_pch

    05/23/2017, 2:54 PM
    I have a required field in a schema, but when I add data, I can leave the field empty. Why is that? Shouldn't it prevent me from adding?
    n
    t
    • 3
    • 10
  • d

    doug_w

    05/23/2017, 3:32 PM
    Having trouble with a mutation that updates two items at once (they have a many-to-many) relationship. This is the available mutation:
    Copy code
    addToCourseInSession(
      coursesCourseId: ID!, 
      sessionsSessionId: ID!)
      : AddToCourseInSessionPayload
    So this is the mutation I am try to use in the playground:
    Copy code
    mutation {
    	addToCourseInSession(
        coursesCourseId: cj30rdvha7w5n0119cifmh8y7, 
        sessionsSessionId: cj30rfjq71f8d0108ljnkq7ci): 
      AddToCourseInSessionPayload
    }
    I am getting a basic syntax error so I think I am just missing something small
    p
    n
    • 3
    • 13
  • d

    doug_w

    05/23/2017, 3:44 PM
  • l

    leopradel

    05/23/2017, 4:31 PM
    Hi, is there a way to create multiple nodes in one mutation?
    n
    • 2
    • 29
  • m

    mll

    05/23/2017, 5:09 PM
    How would you recommend getting a customer's payment sources (credit cards, etc) from Stripe? I'm storing the Stripe customer id on the user model and was thinking of creating an aws lambda function to make the API call, but wondering how to call aws through Graphcool - maybe I shouldn't. Thanks!
    n
    • 2
    • 17
  • j

    joshjoe

    05/23/2017, 6:04 PM
    I’m trying to use Graph.cool to login a user (by getting their token). I have this working, but when I run the
    _signInUser
    function I’m not seeing all of my commands execute. Here is what my
    _signInUser
    looks like
    Copy code
    _signInUser = async () => {
          try {
            const authenticationResult = await this.props.signInUserMutation({
              variables: { email: this.state.email, password: this.state.password }
            });
            AsyncStorage.setItem('token', authenticationResult.data.signinUser.token);
            this.props.navigation.navigate('Home');
            //await AsyncStorage.setItem('token', authenticationResult.data.signinUser.token);
          }
          catch (error) {
            console.log(error);
          }
        };
    n
    • 2
    • 8
  • j

    joshjoe

    05/23/2017, 6:06 PM
    If I click the login button, then click somewhere else in the React Native app it suddenly redirects me like it should
  • s

    sebastien

    05/23/2017, 8:13 PM
    Trying to figure out what the most efficient way to update multiple nodes at once would be. Say the user changes a value for a parent model and then I want to recalculate a field for each node of a child model (one to many relation).
    n
    • 2
    • 12
  • s

    sixtatami

    05/23/2017, 9:12 PM
    hi, is it possible to use the graph.cool email-password integration to login with username and password? signup with name, mail and password is ok.
    n
    • 2
    • 3
  • s

    sixtatami

    05/23/2017, 9:15 PM
    the docs say that it is possible to login with mail or username. but I cant find an example.
  • m

    mannigan

    05/23/2017, 9:36 PM
    in the UI for the databrowser... I have always clicked the X button to try to clear a search and it never worked. I'm just now realizing that that only "minimizes" the search box. instead i have to delete the text in there. Am I the only one that this has tricked before? I've certainly learned my lesson but im worried it might trick others as well
    n
    • 2
    • 6
  • a

    artyom

    05/23/2017, 9:54 PM
    wowza, what a crew of awesome folks is joining us over the last few days! a warm welcome to @p-adams @bixbarton @oskarhane @jamiehalvorson @rainede @mentallyretired @glindqvist @gustavo_pch @b_ryan @kalat @ihackalot @tankist @moonlander @textras @kaiyes @pso @nana3000 @khocef @lsdvincent @aj_aswal @makarst @stevenarcher @peter31 @edwin @simonboots @mouaz @exef @vb-thx @ben @deejay @rgoytacaz @amr @th @ryanwarner @michael @jknr @215renz @kenyk @codyjamescasey @charky809 @xueping @nikhil.thakkar @sarmadsangi @jeangui @weezykon @nikolal @gtorodelvalle @aditya__ @gceezle @sidneyottelohe @byscripts @toy @fni @brendanbowidas @jensyer @moladiop @msprague @maehld @croaky @kobedog71 @vdharmap @uncooloj
    👍 6
  • a

    artyom

    05/23/2017, 9:55 PM
    excited you’re exploring graphcool 🙌
  • t

    tfiwm

    05/23/2017, 10:44 PM
    i am working on the authentication in my angular app and want to implement the CanActivate guard. How can i identify if i am logged in? in the react example app you are doing this: user { id } i receive null if i am doing it
    n
    • 2
    • 21
  • p

    ppatidar

    05/24/2017, 6:32 AM
    @nilan I need your help in auth0 I'm getting error at the time of creating user "The provided idToken is invalid. Please see https://auth0.com/docs/tokens/id_token for how to obtain a valid idToken" I'm using https://auth0.com/docs/api/authentication?http#authenticate-user for generating id_token This given id_token no accepted by graph cool create user mutation
  • w

    wasd171

    05/24/2017, 7:58 AM
    Check out my implementation of GraphQL over Electron's IPC! https://github.com/wasd171/chatinder
  • p

    ppatidar

    05/24/2017, 8:17 AM
    @nilan I'm getting 500 at time of create user "Whoops. Looks like an internal server error. Please contact us in Slack (https://slack.graph.cool) and send us your Request ID: cj32oq16yi8vn0192nwmdf7wl" "requestId": "cj32oq16yi8vn0192nwmdf7wl" Please let me know what is the wrong with this mutation { createUser(authProvider: {email: {email: "yyy@email.com", password: "secret-password"}}, firstName: "You", lastName: "Pin", role: ATHLETE) { id } }
    n
    • 2
    • 2
  • p

    ppatidar

    05/24/2017, 9:03 AM
    @nilan Getting 500 at the time of graphcool push Whoops. Looks like an internal server error. Please contact us in Slack (https://slack.graph.cool) and send us your Request ID: cj32rh0u3i99h0122sn2p7ux4 (Request ID: cj32rh0u3i99h0122sn2p7ux4)
  • p

    ppatidar

    05/24/2017, 9:05 AM
    @nilan console showing white blank page https://console.graph.cool/Miniche/schema Server request for query
    Routes
    failed for the following reasons: 1. Whoops. Looks like an internal server error. Please contact us in Slack (https://slack.graph.cool) and send us your Request ID: cj32rov8iifu50193xixbka2k dges {node {id,name,itemCount,isSystem},cursor},pageInfo {ha
    • 1
    • 2
  • s

    sdubois

    05/24/2017, 9:11 AM
    Hi! I uploaded an image file to Graphcool, but I get AccessDenied when trying to view it, could someone please help?
    a
    • 2
    • 5
  • a

    akadop

    05/24/2017, 9:26 AM
    trying to execute a create user mutation that's always worked for me on graph.cool but now nothing is happening
  • a

    akadop

    05/24/2017, 9:26 AM
    Fetch API cannot load https://nib2v8z803.execute-api.eu-west-1.amazonaws.com/Prod. 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.
    m
    • 2
    • 2
  • a

    akadop

    05/24/2017, 9:26 AM
    Uncaught Error: Can only create NonNull of a Nullable GraphQLType but got: String.
1...201202203...637Latest