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

    randomnerd

    11/10/2017, 11:04 AM
    exactly
  • g

    Gabriel Poama-Neagra

    11/10/2017, 11:27 AM
    Hi, I cannot upload a big project using the CLI. - it works on eu clusters, not on US - I keep getting a timeout ( "CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection." ) Any idea how I can optimize it?
    a
    f
    • 3
    • 2
  • g

    gauravkaushik

    11/10/2017, 11:53 AM
    Hi, I need to add a new
    @isUnique
    field to an existing type in my schema. When adding a new field, it requires a
    @migrationValue(value: "something")
    . But since the field is supposed to be unique, I can't give a static migration value. Is there a way to give randomly generated values within the
    types.graphql
    document, or to reference another existing field in some way to fill this newly generated field?
  • v

    Vinnie

    11/10/2017, 12:04 PM
    @gauravkaushik Did you make the new field required?
    g
    • 2
    • 6
  • h

    Hennadiy

    11/10/2017, 1:53 PM
    Hello, could you please point me to the channel about permission query. I have a question.
    i
    • 2
    • 1
  • h

    Hennadiy

    11/10/2017, 2:04 PM
    Questions: 1. Is it possible in permission query make OR concatenation between SomeTypeExists. e.g.
    SomeType1Exists() OR SomeType2Exists()
    . 2. Is it possible to use a resolver in permission query? Thanks in advance.
  • d

    daniele

    11/10/2017, 4:16 PM
    sorry guys I'm keep reading and reading when functions have to be used but it's still not clear....for example if I need to perform CRUD operation like (select, update, insert and delete) i need a functions?
    i
    • 2
    • 2
  • n

    nilan

    11/10/2017, 5:15 PM
    Hey <!here> πŸ‘‹ today, we released 0.9.1 that comes with patches to enable deployment on Windows πŸŽ‰ See https://github.com/graphcool/framework/releases/tag/0.9.1
    😍 4
    πŸ’š 5
    🍼 1
    πŸ’ͺ🏻 5
    🦜 6
    πŸ’₯ 5
    πŸ‘ 10
    graphcool 5
    m
    • 2
    • 3
  • e

    emils

    11/10/2017, 5:27 PM

    https://media.giphy.com/media/26AHqztlb4CzG3WTu/giphy.gifβ–Ύ

    πŸ˜‚ 2
  • a

    albeik

    11/10/2017, 5:36 PM
    So looking at adding cloudinary to upload images. I want to utilize the Resolver function to do so (as to not expose keys in the front end). Did anyone find any issues going that route?
  • a

    albeik

    11/10/2017, 5:41 PM
    Copy code
    1. frontend.js: post(file) to graphCool.resolver(file)
    2. graphcool.resolver(): post to cloudinary (keys are hidden)
    3. do any other updates (if needed)
    4. return { cloudinary_url }
    a
    e
    • 3
    • 16
  • s

    senorcodecat

    11/10/2017, 5:55 PM
    Is there a way to setup Graphcool to handle two different Auth0 clients? I have two separate Auth0 clients: server and react app.
    a
    • 2
    • 33
  • s

    senorcodecat

    11/10/2017, 5:59 PM
    Or do I setup Graphcool as a third client?
  • p

    peterp

    11/10/2017, 6:12 PM
    is there something up with
    invoke-local
    ?
  • p

    peterp

    11/10/2017, 6:14 PM
    Copy code
    graphcool invoke-local -j myFunction.json --function myFunction -t prod
    the json I pass in is
    event
    from the logs
    a
    • 2
    • 7
  • m

    mo

    11/10/2017, 6:28 PM
    I want ya’ll to check the Graphcool superhero right now, here it is: . . . graphcool . . . πŸ’ͺπŸ‘•πŸ’ͺ . . . πŸ‘– . . . Say hello!
    πŸ˜‚ 5
    πŸ’― 2
    πŸ™‹ 2
    πŸ‘‹ 1
    πŸŽ‰ 5
    πŸ’š 3
    🦜 4
    graphcool 5
    πŸ”₯ 2
    🍟 2
    a
    • 2
    • 2
  • d

    donald

    11/10/2017, 7:22 PM
    Does anyone know why when invoking a function with invoke-local in the CLI, I would get a
    MODULE_NOT_FOUND
    error for
    lodash/maxBy
    , but when deploying my function, it works properly?
    lodash
    is installed locally and in my package.json
  • f

    Fitch

    11/10/2017, 7:24 PM
    no idea, but I would drop the modules directory and run yarn to see if it cleans up the ts dependency
  • f

    Fitch

    11/10/2017, 7:26 PM
    in npm you could try npm i --save lodash
  • d

    donald

    11/10/2017, 7:35 PM
    Hmm, that doesn't seem to have quite done the trick. Wiping node_modules and re-running yarn fixes my
    MODULE_NOT_FOUND
    error and I can invoke the function, but when running
    graphcool deploy --dry-run
    , I now get
    Could not create serverless function for 'getContactLastInteractions'. Ensure that the code is valid
  • d

    donald

    11/10/2017, 7:36 PM
    Changing
    const lodashMaxBy = require("lodash/maxBy");
    to
    import lodash from 'lodash'
    fixes the problem, but I don't really want to import all of lodash
    a
    • 2
    • 4
  • f

    Fitch

    11/10/2017, 7:42 PM
    yeah serverless requires the import, but you can specify out functions in a handlers.js or save
  • d

    donald

    11/10/2017, 7:50 PM
    Hmm weirdly enough it still works fine when deployed... that's good to know though
  • o

    orr

    11/10/2017, 8:57 PM
    Anyone know if there's a replacement for
    graphcool diff
    ? The CLI is telling me to use it to find "potentially destructive changes" but using that command results in
    diff is not a graphcool command
    a
    • 2
    • 1
  • s

    senorcodecat

    11/10/2017, 9:02 PM
    Is there any way to clone functions when cloning a project? Looking to make migration to the new framework a hell of a lot easier on myself by duplicating everything in a project and upgrading that instead of the original.
  • b

    brad.barnes

    11/10/2017, 10:03 PM
    Anybody get the graphcool framework resolvers to work with a windows machine? I keep getting a code: 5000 error for even the hello.js/.graphql in the tutorial... But the models and CRUD api are functional. Found the fix for anyone who seaches slack: ...In Windows the yml file cannot find the files if they are not in the same folder (even in 0.9.1). See end of this post: https://www.bountysource.com/issues/50759930-function-invocation-broken-on-windows FIX: Move all resolver functions to the same folder as yml file.
    a
    n
    • 3
    • 4
  • w

    wontwon

    11/10/2017, 10:36 PM
    Hi everyone, I’m trying to figure out how I can directly include a query string from my path directly into my graphql query
  • w

    wontwon

    11/10/2017, 10:37 PM
    as of right now, I’m using withApollo, but instead I’d like to just wrap my component with graphql and have the query automatically fire off as the component loads
  • g

    Gdog

    11/10/2017, 11:13 PM
    Hello, i'm just getting to grips with Graphcool. I notice we can just create and manage projects in the console but most of the tutorials use the cli in the command line ... is it recommended to use the latter? There doesn't seem to be much documentation for the console.
    πŸ‘ 2
    i
    • 2
    • 1
  • b

    bobbyt

    11/10/2017, 11:24 PM
    Hi @nilan, is there any way for us to manage the underlying database or see its structure? For example, if a mysql table ends up having millions of records, from a performance standpoint would be good to know what indexes are created, etc., and in terms of general maintenance sometimes it's easier (or only possible) to just issue raw queries vs. graphql queries/mutations. Thanks!
    i
    a
    • 3
    • 5
1...420421422...637Latest