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

    garyp

    07/17/2017, 12:21 PM
    Setting this up with Apollo for Android. FYI there is a missing ‘Field’ class in the 0.3.3 maven repo. 0.3.2 is ok.
    n
    • 2
    • 3
  • a

    agartha

    07/17/2017, 1:09 PM
    Q: What is the use of the
    isVerified
    field for Anonymous Authentication?
    n
    • 2
    • 10
  • d

    dankent

    07/17/2017, 1:14 PM
    Is there an official limit on the depth of a nested create mutation? I think I've hit a limit at 4 nested levels (error when running the mutation and the generated API documentation seems to say there is no array field for the relationship on the generated type at this depth)
    n
    • 2
    • 5
  • a

    agartha

    07/17/2017, 1:38 PM
    Q: Can the permission endpoint be used directly? The SomeTypeExists methods are a really nice shorthand for some otherwise more complex queries.
    n
    • 2
    • 3
  • a

    agartha

    07/17/2017, 2:37 PM
    Cheers on all the schema editor / type UI fixes guys! 🎉
    m
    • 2
    • 2
  • m

    mwickett

    07/17/2017, 2:54 PM
    Question about integrating with Algolia - do I need to manually update Algolia when data changes? When a new record is created in Graph.cool, my Algolia index gets updated, but if something on an existing record changes (or a record gets deleted) the change isn’t reflected on Algolia’s side.
    • 1
    • 2
  • p

    pcooney10

    07/17/2017, 3:17 PM
    Hey guys, im working on integrating a custom auth0 login for react-native (Lock currently only works in web browser popup with Expo), and would appreciate some advice
  • p

    pcooney10

    07/17/2017, 3:19 PM
    Is it possible to create the user in Graphcool first, and then call some server-side subscription funciton to create a user in Auth0?
    d
    • 2
    • 4
  • p

    pcooney10

    07/17/2017, 3:19 PM
    Or would I need to create the user in Auth0 first, and then subsequently create the user in graphcool?
  • p

    pcooney10

    07/17/2017, 3:20 PM
    Thanks !
  • n

    nilan

    07/17/2017, 3:20 PM
    Hey everyone <!here|@here> 👋 Another week another changelog! This week we got - a new version of the Graphcool CLI - many improvements to schema migrations and Request Pipeline functions - launching How to GraphQL 💯 - A big big shoutout to @petr.vlcek and @stevewpatterson for their contributions as part of the closed beta for Schema Extensions: *Auth0 authentication (supporting
    RS256
    tokens) and Advanced Email/Password authentication. - Thanks to @mwickett for contributing an improvement to the slug generation example More spots in the Schema Extension beta are available, please reach out to me for more information. The complete changelog can be found here: https://www.graph.cool/docs/faq/graphcool-changelog-chiooo0ahn/#week-28-(july-10-july-16)
    💯 3
    🦜 7
    🎉 3
    🙌 2
    pokemon charmander 2
    👍 25
    d
    m
    • 3
    • 2
  • a

    auser

    07/17/2017, 6:04 PM
    congrats @nilan !
  • m

    mike.johnson

    07/17/2017, 6:05 PM
    Getting this error from the Functions section in the console:
    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.
    a
    n
    • 3
    • 27
  • l

    lastmjs

    07/17/2017, 6:40 PM
    I just wanted to put this out there and see what graph.cool currently supports. I'm leaning towards using AWS Lambda directly instead of the graph.cool functions, by callinga web hook. This is not ideal, because using graph.cool functions is a more integrated solution. But here are the reasons why, things I think graph.cool is missing and AWS Lambda supports: Local testing of functions (in Node.js I'm planning on using http://blog.viacom.tech/2017/02/27/local-and-automated-testing-with-aws-lambda-node-js/), simple support for environment variables with built-in encryption, any version of Node.js and any npm package (I think this is true for AWS and not quite true for graph.cool), and continuous deployment capabilities with the aws-cli. Am I correct that graph.cool does not support any of that yet?
    a
    m
    n
    • 4
    • 11
  • s

    spences10

    07/17/2017, 6:59 PM
    It's happening!! Thanks @nilan 🙌
  • s

    spences10

    07/17/2017, 7:04 PM
    when using
    graphql-request
    where can you add your err handlers?
  • s

    spences10

    07/17/2017, 7:04 PM
    request(endpoint, mutation).then((data) => console.log(data))
  • m

    mwickett

    07/17/2017, 7:05 PM
    @spences10
    .catch(error => console.log(error))
    ?
  • s

    spences10

    07/17/2017, 7:05 PM
    thanks @mwickett
    👍 1
  • m

    mwickett

    07/17/2017, 7:06 PM
    If you’re using it in a graph.cool Function, you can wrap the request in a Promise and resolve it with the returned data, or reject it if you get an error.
    👍🏻 1
  • s

    spences10

    07/17/2017, 7:09 PM
    How do you sanitise strings on input?
  • s

    spences10

    07/17/2017, 7:11 PM
    I'm reading Twitter tweet texts in and some are breaking the request
    a
    n
    • 3
    • 42
  • m

    mike.johnson

    07/17/2017, 8:09 PM
    When working with functions and isomorphic-fetch, how can I see the console.log if it's in a promise?
    n
    a
    • 3
    • 9
  • m

    max

    07/17/2017, 8:11 PM
    Could anyone point me in the right direction? I'm trying to create a new item with an @relation with a user defined type. When I tried creating the new item I included {id: '121xas23'} to point to the type but it didnt work.... so for instance in the following link how would you create a new Document while adding a User to the owner field
    n
    • 2
    • 20
  • a

    auser

    07/17/2017, 8:12 PM
    @mike.johnson I know… they can be a pain to work with (figuring it out myself), but I’m having success when writing tests for ‘em
  • a

    auser

    07/17/2017, 8:13 PM
    and I can gist you my function I use to fetch from graphcool
  • m

    mike.johnson

    07/17/2017, 8:14 PM
    Sure, that's be great.
  • a

    auser

    07/17/2017, 8:14 PM
    https://gist.github.com/auser/8d3f1ba7ded9f05398075972e55c2a35
    n
    • 2
    • 1
  • a

    auser

    07/17/2017, 8:14 PM
    I just use
    isomorphic-fetch
  • a

    auser

    07/17/2017, 8:15 PM
    I tried with lokka, but functions have a hard time with lokka/external packages
1...274275276...637Latest