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

    welf

    10/18/2017, 3:41 AM
    Can you please tell something about when it will be possible to use interfaces and union types in Graph.cool? I need it to plan my work.
    n
    • 2
    • 3
  • j

    Jay

    10/18/2017, 5:14 AM
    Graph cool docs seem broken for me
    n
    • 2
    • 1
  • j

    Jay

    10/18/2017, 5:15 AM
  • k

    kimf

    10/18/2017, 5:59 AM
    Trying to run a newly deployed function via the local playground I get this:
    Copy code
    Deploying function signup for project cj8wljd9e00060140xr7l9rp0...
    Deploying function signup for project cj8wljd9e00060140xr7l9rp0... Done.
    /var/faas/functions/cj8wljd9e00060140xr7l9rp0/signup/src/email-password/signup-dev.js
    false
    false
    Function invocation summary for project cj8wljd9e00060140xr7l9rp0 and function signup:
    Duration: 7210ms
    Success: true
    Function return value: '{"error":"An unexpected error occured."}'
    Error: ''
    Process stdout: 'Error: GraphQL Error (Code: 200): {"response":{"code":3016,"requestId":"us-west-2:simple:cj8vq4kbi00000121ocsygg2s","error":"Project not found: 'cj8wljd9e00060140xr7l9rp0'","status":200},"request":{"query":"\n    query {\n      User(email: \"<mailto:kim.fransman@gmail.com|kim.fransman@gmail.com>\") {\n        id\n      }\n    }"}} 
    '
    Process stderr: ''
    `
    Any idea to what I’m doing wrong?
    n
    • 2
    • 7
  • r

    rion

    10/18/2017, 7:12 AM
    I just spend an hour trying to figure out what was wrong with my code. I finally came here to see if I could get some help, but before asking I figured I'd try one last thing. I thought, no way this will fix it, but it did...
  • r

    rion

    10/18/2017, 7:12 AM
    Turns out this didn't work...
    Copy code
    type Budget {
      status: String
      error_type: String
      budget: Json
      proposals: [Json]
    }
    
    extend type Query {
      getProposals(): Budget
    }
  • r

    rion

    10/18/2017, 7:12 AM
    But this did
  • r

    rion

    10/18/2017, 7:12 AM
    Copy code
    type Budget {
      status: String
      error_type: String
      budget: Json
      proposals: [Json]
    }
    
    extend type Query {
      getProposals: Budget
    }
  • r

    rion

    10/18/2017, 7:14 AM
    Just in case anyone wanted to celebrate with me πŸŽ‰
    πŸŽ‰ 8
    a
    n
    • 3
    • 5
  • d

    daniele

    10/18/2017, 8:32 AM
    hello everyone could please sameone point me in the right direction for selfinstall of graphcool? I'm quite newbie
  • d

    diemol

    10/18/2017, 8:50 AM
    Hi again, I have a question about Chromeless (is this the right place) when using it with AWS Lambda, if I run tests in parallel, are they isolated? e.g. I need to run the same test with different users, and each user will login with its user/pwd has anyone done something similar?
  • m

    Maslov

    10/18/2017, 10:08 AM
    Is anything ok with graph.cool?
    n
    • 2
    • 1
  • m

    Maslov

    10/18/2017, 10:08 AM
    Can't access the console
  • m

    Maslov

    10/18/2017, 10:08 AM
    "Something went wrong, Please contact technical support"
  • c

    Cipri

    10/18/2017, 11:39 AM
    Is there any way to change my graphcool password?
    n
    • 2
    • 1
  • n

    notrab

    10/18/2017, 1:15 PM
    Any examples of testing test payloads to functions guys?
    n
    • 2
    • 7
  • p

    Pedro Jardim

    10/18/2017, 1:40 PM
    Cant access the Functions of my project in Console ate graph.cool, is there any thing wrong or is just me =P ? The functions screen stay loading forever.
    n
    • 2
    • 1
  • j

    Jannis Pohlmann

    10/18/2017, 2:12 PM
    Hi! A quick question: I’m using the new Grpahcool framework and I’m trying to get the email-password template to work.
  • j

    Jannis Pohlmann

    10/18/2017, 2:13 PM
    I have a root token created but the signup function fails finding it on the Graphcool instance.
  • j

    Jannis Pohlmann

    10/18/2017, 2:14 PM
    Note: I’m using
    graphcool-lib@next
    and
    event.context.graphcool.pat
    should now be
    event.context.graphcool.token
    but it isn’t set.
    n
    • 2
    • 25
  • m

    Miles Robinson

    10/18/2017, 3:03 PM
    just a heads up, the instagram vue apollo example fails:
    GraphQL execution errors for query 'allPosts'
    n
    • 2
    • 5
  • m

    matthewhager

    10/18/2017, 3:28 PM
    I’ve been googling and searching high and low for the documentation on npm imports and what is supported. Does anyone have the link?
    a
    • 2
    • 1
  • p

    Pieter

    10/18/2017, 3:59 PM
    With the image API, how do I crop a image if I don't know the actual dimension of the original image? like the documentation says you can crop by saying
    /0x0:400x400
    which will take the first 400 pixels top left, but if the original image is like 4000 pixels wide, it will crop out most of the image. I want it to just make it squared without stretching it, so if width is more than height, it should take the height and crop the width on the sides to make it same as height
  • p

    Pieter

    10/18/2017, 4:00 PM
    same with the actual 0x0 offset. would be nice if we could specify it to be centered regardless of the amount of pixels
    a
    • 2
    • 10
  • a

    agartha

    10/18/2017, 5:36 PM
    What's the name of the PAT for a RP hook (non-Framework Preview project)? function name or mutation name?
  • t

    taikn

    10/18/2017, 6:09 PM
    How can I apply permissions only to specific fields of a type?
    a
    • 2
    • 7
  • a

    adamT

    10/18/2017, 9:25 PM
    hi, do any1 knows if I somehow can run mutations at graphql swapi enpoint? like in here: https://api.graph.cool/simple/v1/swapi ❓
    w
    • 2
    • 2
  • s

    Sam Dickerman

    10/18/2017, 9:38 PM
    Hi Folks: I'm trying to follow the directions in the new version of the docs for graphcool + Vue.js. https://docs-next.graph.cool/getting-started/vue/apollo-shae2aighe Two things: 1) There are a few places on the page that refer to "React" - perhaps a cut and paste error. 2) Step 3 reads: # Create a local service definition in a new directory called
    server
    graphcool init server and then: graphcool init creates the local service structure inside the specified server directory: . └── server β”œβ”€β”€ graphcool.yml β”œβ”€β”€ types.graphql β”œβ”€β”€ .graphcoolrc └── src β”œβ”€β”€ hello.graphql └── hello.js However - that process isn't creating any files in my project directory (the directory I'm in using terminal) I do get the project.graphcool file: βœ”οΈ Created project Slowwarrior Voice (ID: xxxxxxx) successfully. Here is what you can do next: 1) Open project.graphcool in your editor to update your schema. You can push your changes using
    graphcool push
    . 2) Use one of the following endpoints to connect to your GraphQL API: Simple API: https://api.graph.cool/simple/v1/xx Relay API: https://api.graph.cool/relay/v1/xxx 3) Edit your project using the Console. Run
    graphcool console
    to open it.
  • s

    Sam Dickerman

    10/18/2017, 9:45 PM
    Hope it's OK to ask this here. I can create an issue in github but I'm not sure it isn't just me not understanding how/where the server files should be created
    n
    • 2
    • 2
  • s

    shadi

    10/18/2017, 10:05 PM
    Hey is anyone having the same issue as me? As of the past 24 hours or so, this line,
    const fromEvent = require("graphcool-lib").fromEvent
    , when included in a function in a legacy project, throws this error
    Copy code
    SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Module._compile (/data/sandbox/lib/module.js:127:21)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at WebtaskModule.require (/data/sandbox/lib/module.js:101:19)
    at require (/data/sandbox/lib/module.js:136:21)
    at Object.<anonymous> (/data/io/29af25e3b10f4e559e5d20dd0f2430c2/webtask.js:1:81)
    at WebtaskModule.compileWebtask (/data/sandbox/lib/module.js:95:34)
    a
    n
    • 3
    • 2
1...379380381...637Latest