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

    juicycleff

    02/04/2018, 10:13 AM
    Anyone made progress yet with testing in prisma?
    πŸ‘ 1
    n
    j
    • 3
    • 4
  • s

    Stef

    02/04/2018, 11:34 AM
    Is there anywhere you can see the source of the traffic hitting your Graphcool endpoint? I’ve got some confusing data that could only be explained by an outdated version of my JS somehow still being available.
  • r

    rick

    02/04/2018, 12:22 PM
    is there a way to reset your prisma account?
    m
    • 2
    • 1
  • a

    amponce

    02/04/2018, 6:45 PM
    Hello everyone
    πŸ‘‹ 2
  • e

    Emi

    02/04/2018, 8:13 PM
    Are cascading deletes working with prisma? I'm getting a constraint error when deleting nodes with relations.
    g
    n
    d
    • 4
    • 4
  • t

    tim

    02/05/2018, 3:54 AM
    Is there a way to run a lambda on a certain period as we can with AWS schedules?
  • r

    Rakin

    02/05/2018, 4:15 AM
    I am new to graphcool. How can i call a resolver function from react or frontend. I am using react-apollo library. Here is type definition: type SignupUserPayload { id: ID! token: String! } extend type Mutation { signupUser(email: String!, password: String!, name: String!, dob: DateTime) : SignupUserPayload } So, when i call the function from react, it does not works.
  • k

    K

    02/05/2018, 4:29 AM
    Hello...also new new to GraphQL/Graphcool. I'm trying to use the auth template for email/password. After deploying to Graphcool, when I try to invoke the signup user mutation from the playground I get this error in the logs: Unknown argument 'email' on field 'User' of type 'Query'.
  • k

    K

    02/05/2018, 4:29 AM
    which I'm guessing is happening from this bit: const query =
    Copy code
    query getUser($email: String!) {
          User(email: $email) {
            id
          }
        }
  • t

    Tavo

    02/05/2018, 5:04 AM
    trying to add a migration value for [String!]!
    πŸ‘ 1
  • t

    Tavo

    02/05/2018, 5:04 AM
    is it just a string for the migrationValue? or can I do an array for value?
  • e

    Edward

    02/05/2018, 5:41 AM
    Hello
  • e

    Edward

    02/05/2018, 5:41 AM
    @Tavo that means array of strings
  • t

    Tavo

    02/05/2018, 5:46 AM
    @Edward yup but how do I do a
    @migrationValue(value: [String!]!)
    ?
    m
    • 2
    • 2
  • a

    Akshay

    02/05/2018, 7:07 AM
    Hello guys, I was wondering if graphcool or prisma can work with custom databases. I want to use mariadb(cannot-help), and deploy it to an aws ec2 instance. From the docs it seemed all docker related and I have no clue what it is. Any help is appreciated
    m
    • 2
    • 10
  • a

    Akshay

    02/05/2018, 7:12 AM
    Is there any way I can skip the docker aspect of it?
  • e

    Emi

    02/05/2018, 10:26 AM
    Is
    prisma local logs
    working for you? I'm not getting any response after running this command.
    • 1
    • 1
  • j

    Jarand

    02/05/2018, 10:41 AM
    Hi! I'm trying to do a conditional mutation. What i mean by that, is the following: I have two types (InviteCode and User). I want to update the
    isValid
    field on the User, if the correct inviteCode is sent. But i want to do it all on the server. Is that possible?
  • j

    Jarand

    02/05/2018, 10:42 AM
    So first i want to query and see if the code passed in exist in
    InviteCode
    . If it does, i want to update the
    isValid
    field on
    User
  • m

    max

    02/05/2018, 10:43 AM
    @nilan graphcool-framework -> anyone else getting
    Copy code
    504 (Gateway Time-out)
    Failed to load <https://api.graph.cool/simple/v1/xxxxxx>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin  is therefore not allowed access. The response had HTTP status code 504. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    πŸ‘πŸΎ 1
    m
    • 2
    • 3
  • j

    Jeremy Weasley

    02/05/2018, 10:49 AM
    @Jarand Basically it will be a new mutation for the "InviteCodeValidate" operation. Then implement it as a resolver, it will check if the user has the invite code(maybe generated as some kind of token) given the code and the user email.
  • j

    Jarand

    02/05/2018, 10:52 AM
    I see, so i need to use the Functions resolver?
  • j

    Jeremy Weasley

    02/05/2018, 10:52 AM
    yes
  • j

    Jarand

    02/05/2018, 10:52 AM
    Thanks
  • j

    Jeremy Weasley

    02/05/2018, 10:53 AM
    pleasure
  • j

    Jeremy Weasley

    02/05/2018, 10:55 AM
    and the UX could be the user enters the code and email then commit. If success go to the success page, you can place a "Go to Login Page" link below the success message.
    j
    • 2
    • 38
  • j

    Jarand

    02/05/2018, 10:55 AM
    Yeah, think i can fix the UX. its the backend I'm having trouble with
  • j

    Jarand

    02/05/2018, 10:55 AM
    Will try to fix it with a resolver πŸ™‚
  • j

    Jarand

    02/05/2018, 10:56 AM
    Never used it before
  • j

    Jeremy Weasley

    02/05/2018, 10:56 AM
    you can check Ben Awad's Youtube channel. https://www.youtube.com/channel/UC-8QAzbLcRglXeN_MY9blyw
    πŸ‘ 3
1...559560561...637Latest