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

    matic

    03/04/2018, 2:54 PM
    @manticarodrigo have a look at the
    generated
    schema. There you can find an input type you need for creating a poll. Just switch Poll with Poll input and you should be good to go. PS.: search for
    input
    when crawling through schema as the input types are denoted with
    input
    keyword.
    m
    • 2
    • 3
  • j

    jamiehalvorson

    03/04/2018, 3:04 PM
    Is Prisma Cloud down? https://app.prisma.sh/ can’t seem to authenticate via CLI either. Status page says all is up and running.
    h
    n
    • 3
    • 4
  • e

    ericsonluciano

    03/04/2018, 4:33 PM
    how to remove services from us1 cluster?
    n
    • 2
    • 2
  • y

    yolen

    03/04/2018, 4:54 PM
    I am uploading file using the file endpoint. I use python. I have no problem using the requests lib but when I use aiohttp my file names are preceeded by the name of the encoding i.e.
    Copy code
    data =aiohttp.FormData()  
        data.add_field('data', open('../docs-to-upload/page2.html','rb'), filename='Jens.html', content_type='text/html')    
        async with <http://session.post|session.post>(url, data=data) as response:
            return await response.text()
  • y

    yolen

    03/04/2018, 4:55 PM
    so my file name is in this case
    Copy code
    {\n  "secret": "cjed1e5hg0p2b0183o597pcmm",\n  "name": "utf-8\'\'Jens.html",\n  "size": 31726,\n  "url": "<https://files.graph.cool/cjeac9naw3f7m01511qo8i92g/cjed1e5hg0p2b0183o597pcmm>",\n  "id": "cjed1e5ix0p2c01831o5cour5",\n  "contentType": "text/html"\n}
  • y

    yolen

    03/04/2018, 4:56 PM
    name : `utf-8\`\'Jens.html"
  • y

    yolen

    03/04/2018, 4:56 PM
    Anyone now whats going on ?
  • y

    yolen

    03/04/2018, 5:33 PM
    I have further tried to set the header explicitly to `headers = {'Content-Type': 'multipart/form-data'}`but that leads to 500 error
  • j

    jamiehalvorson

    03/04/2018, 5:46 PM
    Hi, if anyone has any time I’m struggling with upserts and how to use them, think I’ve probably got the wrong idea! https://www.graph.cool/forum/t/can-upsert-take-two-parameters-i-e-without-an-id/2719
    👍 1
  • t

    tsdexter

    03/04/2018, 6:11 PM
    I have a custom resolver timing out after 15s… it needs to loop through and insert a few hundred new records. What is the best way to do this? I’ve done it the same way as here, but still times out awaiting the promises: https://github.com/marktani/scripts/blob/master/delete-nodes/delete-nodes.js
  • m

    Marc Qualie

    03/04/2018, 6:16 PM
    @nilan is there a guide for migrating from graphcool tp prisma? And by migrate I mean the data and existing resolver functions, not just the differences between them and how to setup a new prisma cluster Currently I’m getting errors when importing the .zip I exported from graphcool cloud into prisma cloud
    n
    • 2
    • 2
  • c

    ckelley

    03/04/2018, 6:48 PM
    Anyone know how to fix this error when deploying Prisma?
    Your token is invalid. It might have expired or you might be using a token from a different project
    Deployed a docker container with Prisma, then deployed my API to that cluster, which worked, but if I try to access the playground it doesn't work
    ✅ 1
    • 1
    • 1
  • j

    justinrich

    03/04/2018, 6:52 PM
    I need some guidance on permissions. I'm creating a user management system. I want to group users together and only let people see a users contact info if they are in the same group. However I want everybody to be able to see all usernames. I can lock it down with permissions so that a user can't query all contact info. But ideally I'd like the query for all users to return every username and only return contact info for those in the users groups. Does anyone have a suggestion on how to do this?
    l
    • 2
    • 5
  • j

    justinrich

    03/04/2018, 6:53 PM
    Also being about to search for users by email or phone number for all users would be useful ... Even if they can't see the contact info in the results.
  • u

    user

    03/04/2018, 7:13 PM
    @Tman commented on @Tman’s file

    https://prisma.slack.com/files/U97PTHCEQ/F9JDC5V5K/fields_createdat.jpg▾

    : From what I can tell the createdAt and updatedAt field are hidden until you explicitly create it with a DATETIME! type
  • r

    risjai

    03/04/2018, 7:19 PM
    I am getting this error, even if I am providing the inputs as asked. Could someone point me to my mistake? https://graphqlbin.com/BBJZh8
  • j

    justinrich

    03/04/2018, 8:01 PM
    Are there any guides for permissions other than the CMS use case
  • u

    user

    03/04/2018, 8:48 PM
    @tsdexter commented on @Tman’s file

    https://prisma.slack.com/files/U97PTHCEQ/F9JDC5V5K/fields_createdat.jpg▾

    : afaik, if you’re using the yml definition and types.graphql you have to include those fields in your definition. You probably created the left in the console which did it automatically?
  • u

    user

    03/04/2018, 8:51 PM
    @Tman commented on @Tman’s file

    https://prisma.slack.com/files/U97PTHCEQ/F9JDC5V5K/fields_createdat.jpg▾

    : @tsdexter Yeah we still haven’t migrated from the console, but luckily it’s happening soon. I just wasn’t aware that you have to explicitly add updatedAt and createdAt. Thanks for the help!
  • u

    user

    03/04/2018, 8:52 PM
    @tsdexter commented on @Tman’s file

    https://prisma.slack.com/files/U97PTHCEQ/F9JDC5V5K/fields_createdat.jpg▾

    : np. getting out of the console is amazing, especially when it comes to functions 👌
  • r

    Russ Callahan

    03/04/2018, 10:44 PM
    I'm having some trouble with a React native app, implementing compose() from react-apollo with 2 queries. Both queries are showing up in props as objects instead of arrays. Any help would be awesome!
  • d

    dylan

    03/04/2018, 11:20 PM
    Hi all 🙂
    👋 2
  • p

    pasa

    03/04/2018, 11:55 PM
    Hey everyone, I have an issue when running `prisma deploy`:
  • p

    pasa

    03/04/2018, 11:55 PM
    -.txt
  • p

    pasa

    03/04/2018, 11:55 PM
    What could cause this error?
    h
    n
    • 3
    • 8
  • p

    pasa

    03/04/2018, 11:56 PM
    I'm not running multiple containers with docker..
  • j

    JC

    03/05/2018, 1:57 AM
    Is there anyone here using apollo to get data from GraphQL with multiple client?
  • v

    Vendicto

    03/05/2018, 8:40 AM
    Hi there, I'm trying to use facebook auth, and got an error
    Copy code
    {
      "error": "Function returned invalid status code: 0. Raw body: empty.last"
    }
    who knows what is it ?
    c
    n
    • 3
    • 17
  • l

    Luo

    03/05/2018, 8:42 AM
    prisma
  • l

    Luo

    03/05/2018, 8:43 AM
    sorry, I meat to search it 😂
1...595596597...637Latest