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

    Pieter

    11/11/2017, 9:37 AM
    any react apollo developers who want to join our remote team? we using nextjs with graphcool. please message me.
  • t

    timwis

    11/11/2017, 3:22 PM
    Hey, is there an example out there of someone testing their graphcool framework project? in particular testing permissions. A tutorial or docs would be amazing but I can figure it out if there’s an example repo out there.
  • f

    fabien0102

    11/11/2017, 3:27 PM
    Me too… I can't have the
    permission query
    tab 😔
  • f

    fabien0102

    11/11/2017, 4:47 PM
    Hello, I can finally deploy my project 🙂 So now I’m trying to set the correct permissions but I got this strange error…
    Copy code
    "code": 3008,
    "message": "No CONNECT permissions",
    If someone can just explain what it's means ^^ (I find the error on the source code, but I don't have xp in Scala 😉 )
    a
    n
    t
    • 4
    • 24
  • t

    timwis

    11/11/2017, 7:34 PM
    Is there any way to recurse in permission queries? I’m building a hierarchical data structure, and I want to see if a user is anywhere in the hierarchy
  • c

    Christopher Elliott

    11/11/2017, 8:33 PM
    npm install -g graphcool can I not use yarn to install graph cool has have that nasty npm bug
    a
    • 2
    • 4
  • p

    proteus

    11/11/2017, 10:00 PM
    Has anyone updated to graphcool-cli@0.9.2?
  • p

    proteus

    11/11/2017, 10:00 PM
    It seems to do nothing when deploying.
    a
    • 2
    • 5
  • p

    proteus

    11/11/2017, 10:12 PM
    Something is really wrong.
  • p

    proteus

    11/11/2017, 10:12 PM
    My changes are not deployed.
  • p

    proteus

    11/11/2017, 10:19 PM
    Anyone?
  • r

    russell

    11/11/2017, 11:06 PM
    Copy code
    if (!event.context.graphcool.pat) {
        console.log('Please provide a valid root token!')
        return { error: 'Facebook Authentication not configured correctly.'}
      }
    Anyone know why this is in the Facebook authentication example? I don't see any reason for checking if there is a root token here, it's not used in the function at all, and at first glance doesn't seem to be in the other auth examples
  • d

    danscan

    11/11/2017, 11:11 PM
    Are PRs to
    graphcool/framework
    welcome? Some features that are high priorities for me, which I'd like to add if possible: 1. Sorting by aggregations of related fields (e.g., sorting Posts by sum of Upvotes) [can this be done with custom resolvers?] 2. Cascading deletion
    a
    • 2
    • 3
  • m

    markmiller21

    11/11/2017, 11:17 PM
    Is the algolia implementation for the new graphcool framework really live? I’ve been trying to make it work and I am nearing the conclusion that it is dependent on some logic that is not exposed yet. Previously when you would set it up through the web interface you could select the model you want to port to algolia and setup queries to query algolia on. All the article and documentation about setting up algolia is geared toward subscriptions with nothing related to porting existing data. Are web integration a thing of the past or are they just not ready yet in the new framework?
    a
    p
    • 3
    • 3
  • s

    schrepfler

    11/12/2017, 8:54 AM
    anyone has any idea when the graphql summit 2017 videos will come out?
  • f

    Faultless

    11/12/2017, 9:31 AM
    Hey guys, anyone has any concrete full custom resolver example to wrap around a REST API? I think I'm doing something wrong by importing a an external API method and and returning data using .then
  • b

    bexhoward1

    11/12/2017, 1:09 PM
    Hi, im trying to run a query from a resolver function but its not retuning any data. Anyone know what im missing?
    a
    • 2
    • 26
  • b

    bexhoward1

    11/12/2017, 1:09 PM
    -.txt
  • b

    bexhoward1

    11/12/2017, 1:10 PM
    I want to build on this to do something more complex but cant seem to get this basic one working first
  • s

    senorcodecat

    11/12/2017, 4:26 PM
    Morning ladies and gents. Finishing up migrating a legacy project to the new framework, and getting this error on all my functions. Problem is, an endpoint is defined so not sure what this means
  • s

    senorcodecat

    11/12/2017, 4:26 PM
    Copy code
    "logs": [
        {
          "2017-11-12T16:23:52.765Z": "Error: endpoint is required!\n    at new Transport (/var/task/node_modules/lokka-transport-http/dist/in         dex.js:84:13)\n    at Object.<anonymous> (/var/task/src/lokka/lokka_client.js:8:16)\n    at Module._compile (module.js:570:32)\n    at Obj         ect.Module._extensions..js (module.js:579:10)\n    at Module.load (module.js:487:32)\n    at tryModuleLoad (module.js:446:12)\n    at Func         tion.Module._load (module.js:438:3)\n    at Module.require (module.js:497:17)\n    at require (internal/module.js:20:19)\n    at Object.<a         nonymous> (/var/task/src/updTmOnUsrAccStatChng.js:2:19)\nRequestId: de5caed5-c7c5-11e7-a5ff-f3f59f6f585e Process exited before completing          request"
        }
    a
    n
    • 3
    • 31
  • d

    daniele

    11/12/2017, 6:22 PM
    Hi guys I'm continuing my learning with apollo, graphql etc and today I run in the problem of the mutation that doesn't update my results. I fixed my problem adding
    fetchPolicy: 'network-only'
    I would like to know if it's the right way to do
  • d

    daniele

    11/12/2017, 6:23 PM
    For example:
  • d

    daniele

    11/12/2017, 6:23 PM
    Copy code
    public airlines(): Observable<any> {
           return this.apollo.query({
                query: gql`{
                    allAirlines {
                        id
                        name
                        color
                    }
                }`,
                fetchPolicy: 'network-only'
            });
        }
    
        /**
         * Add a new airline
         *
         * @param {Airline} airline
         * @returns {Observable<any>}
         */
        public addAirline(airline: AddAirline): Observable<any> {
            return this.apollo.mutate({
                mutation: gql`
                    mutation($name: String!, $color: String!) {
                        createAirline(name: $name, color: $color){
                            name,
                            color
                        }
                    }
                `,
                variables: {
                    name: airline.name,
                    color: airline.color
                }
            });
        }
  • r

    rein

    11/12/2017, 6:52 PM
    Hey guys, I was wondering. If I have a post and user, what is the best way to check if a user liked a certain post? Right now I have a likes entity and I query on it to find if a like with the combination of user and post exists but im not sure if that is a good approach
  • d

    daniele

    11/12/2017, 6:58 PM
    @rein do you have an opinion about my question?
  • r

    rein

    11/12/2017, 6:59 PM
    not immediately sorry, I have little experience with observables
  • d

    daniele

    11/12/2017, 7:00 PM
    well is not observable honeslty
  • d

    daniele

    11/12/2017, 7:00 PM
    is more try to understand what to do when a mutation occour
  • d

    daniele

    11/12/2017, 7:01 PM
    when you delete an item from your collection what you do in general?
1...422423424...637Latest