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

    lionstone

    03/15/2018, 4:26 PM
    yet receive error saying
    TypeError: Cannot read property 'graphcool' of undefined
  • u

    user

    03/15/2018, 4:27 PM
    @manticarodrigo commented on @manticarodrigo’s file https://prisma.slack.com/files/U9J4TSD7Z/F9QG2K37E/prisma_feed_query.txt: You’re the bomb @lawjolla!
    Prisma_Feed_Query.txt
  • l

    lionstone

    03/15/2018, 4:27 PM
    Specifically it's getting hung up on the line
    const api = graphcool.api('simple/v1')
  • l

    lionstone

    03/15/2018, 4:28 PM
    This is using the stock
    email-password
    template
  • l

    lionstone

    03/15/2018, 4:30 PM
    which works fine in my production (graphcool-hosted) environment; however, as I'm trying to write custom functions, I'm trying to find a way to run them locally while I develop. I've been unable to find good examples on how to properly use
    graphcool invoke-local
    , so maybe I am calling it incorrectly?
  • p

    picosam

    03/15/2018, 4:47 PM
    About https://graphcool.slack.com/archives/C0MQJ62NL/p1521128742000241, I take that back; even when I fall back to
    graphql-yoga 1.5.2
    I still get the same error…. now I’m unable to trace what caused this 😞
    l
    • 2
    • 13
  • d

    Daniel Carroll

    03/15/2018, 4:51 PM
    I’m creating a new model type in my types.graphql file and then attempting to deploy to graphcool-framework but I’m running into issues. When I deploy with dry run I get a good response, says Cart type created with fields. When i try to deploy without dry run I get an Internal Server Error. This is my model definition:
    Copy code
    type Cart @model {
      id: ID! @isUnique
      createdAt: DateTime!
      updatedAt: DateTime!
    }
    Anyone have any ideas? Is this something I’m doing wrong or an outage? Status page says no issues.
  • j

    jek

    03/15/2018, 5:21 PM
    Hi All -- I was wondering if there was a recommended client stack for a fresh reactnative project using graphcool -- apollo 2? Redux vs apollo-state-link? That sort of stuff
    l
    • 2
    • 5
  • p

    picosam

    03/15/2018, 5:27 PM
    Ouch; I’m actually unable to find any way to attach my WebStorm project to the debug session created by launching
    yarn debug
    on my Prisma project!
    h
    l
    • 3
    • 72
  • l

    logan

    03/15/2018, 7:10 PM
    anyone else getting a 502?
  • h

    horia.ancas

    03/15/2018, 7:27 PM
    guys, I’m able to use prisma as a database only, but when I try to connect to a typescript-advanced prisma, I get
    Server cannot be reached
    in the playground
  • h

    horia.ancas

    03/15/2018, 7:32 PM
    nevermind, I did a
    prisma token
    and used that as an authorisation header
  • d

    danielvdm

    03/16/2018, 1:00 AM
    https://github.com/graphcool/graphcool-framework/issues/317
  • d

    danielvdm

    03/16/2018, 1:01 AM
    does anyone know the status on this or a workaround?
  • d

    danielvdm

    03/16/2018, 1:01 AM
    still trying to be able to set fields server-side based on auth header
  • d

    danielvdm

    03/16/2018, 1:02 AM
    i.e.
    Post
    has an
    Author
    field, but the permissions are private so the client can't just write any random
    Author
    to the post - the server should set that value based on the auth header for the user sending the mutation
  • d

    danielvdm

    03/16/2018, 1:02 AM
    trying to use a before hook but auth headers aren't available 😕
  • t

    tdrake

    03/16/2018, 2:51 AM
    what graphcool repo should I use to report a bug on the site
  • j

    justinrich

    03/16/2018, 3:37 AM
    In a prisma “WHERE” statement what’s the difference between using multiple keys in a where clause and using an AND statement with multiple identifiers?
  • p

    phonghho

    03/16/2018, 4:44 AM
    Hi all. Every time I change the slightest thing in my types.graphql and try to deploy I recieve a There are issues with the new service definition: Global ✖️ None.get I can delete the whole model and then re-create it but that doesn't seem sustainable. Is there a different way to go about this?
  • h

    horia.ancas

    03/16/2018, 9:16 AM
    hey, how do I point the playground to the application schema, not the DB schema?
    h
    • 2
    • 4
  • r

    Rob Murtagh

    03/16/2018, 5:15 PM
    Hi all, quick question on relations: How would you model a simple group setup where a group has many members and a member many groups; but where each member is either a ‘participant’ or ‘admin’? Seems to me that the @relation needs to have a property, but I’m not sure that this is possible in Prisma? (example minimal schema below…). Thanks!
  • r

    Rob Murtagh

    03/16/2018, 5:16 PM
    GroupHasMembers.txt
  • r

    Rob Murtagh

    03/16/2018, 6:45 PM
    Following up on the comment above, is this a good solution?
    GroupHasMembers_-_Solution_.txt
  • u

    user

    03/16/2018, 6:56 PM
    @lawjolla commented on @Rob Murtagh’s file https://prisma.slack.com/files/U9B4T6SNL/F9QQKLRJM/grouphasmembers_-_solution_.txt: I've used your exact approach and have yet to be burned. It's an old SQL problem and I'm 99% sure that's how they solved it. You can think of Membership as your User/Group Join table If you think membershipClass may get more involved with types, you could make it its own node too, though you will pay a price in query join speed.
    GroupHasMembers_-_Solution_.txt
  • d

    Daniel K.

    03/16/2018, 7:49 PM
    hey, what is the proper way of changing prisma secret? I am failing to find some docs on that
    l
    • 2
    • 2
  • m

    McArthur

    03/16/2018, 8:55 PM
    I have a list of enums on an object but I’m having trouble figuring out the query to create the object. Getting an error when I try this
    Copy code
    mutation {
    creatObj(data:{
    tags: [ENUM1,ENUM2]
    }){id}
    }
    l
    • 2
    • 1
  • m

    McArthur

    03/16/2018, 8:55 PM
    Reason: 'tags' Expected 'ChallengeCreatetagsInput', found not an object.
  • y

    yolen

    03/16/2018, 8:56 PM
    Anyone know how to delete a file using the file endpoint (or something else than the console 🙂 ) ?
  • y

    yolen

    03/16/2018, 8:58 PM
    here it is
    Copy code
    mutation {
      deleteFile(id: "my-file-id") {
        file {
          id
        }
      }
    }
1...610611612...637Latest